/* BREADCRUMB - Matches blog.php exactly */
.breadcrumb-bar {
    background: #f3f3f3;
    border-top: 1px solid #d9d9d9;
    border-bottom: 1px solid #d9d9d9;
    padding: 16px 20px;
}

.breadcrumb-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 15px;
    line-height: 1.4;
}

.breadcrumb-container a {
    color: #7c66f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb-container a:hover {
    color: #5f49d6;
}

.breadcrumb-container span {
    color: #8d8d8d;
}

.breadcrumb-container .current {
    color: #111111;
    font-weight: 500;
}

@media (max-width: 768px) {
    .breadcrumb-bar {
        padding: 13px 16px;
    }

    .breadcrumb-container {
        font-size: 14px;
        gap: 8px;
    }
}

/* BLOG POST HERO */
.blog-post-hero {
    padding: 48px 20px 56px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.blog-post-hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
    gap: 40px;
    align-items: center;
}

.blog-post-hero-content {
    max-width: 760px;
}

.blog-post-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(124, 102, 241, 0.10);
    color: #7c66f1;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 18px;
}

.blog-post-hero-content h1 {
    font-size: 46px;
    line-height: 1.08;
    letter-spacing: -1.3px;
    color: #0f172a;
    font-weight: 800;
    margin: 0 0 18px;
    max-width: 100%;
    text-wrap: balance;
    overflow-wrap: break-word;
}

.blog-post-hero-content h1 span {
    background: linear-gradient(90deg, #7c66f1 0%, #a855f7 45%, #ec4899 75%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.blog-post-description {
    font-size: 16px;
    line-height: 1.75;
    color: #5f6b7a;
    max-width: 62ch;
    margin: 0 0 22px;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #7b8494;
    font-weight: 500;
}

/* RIGHT PERMANENT LOGO VISUAL */
.blog-post-hero-visual {
    display: flex;
    justify-content: flex-end;
}

.hero-logo-card {
    position: relative;
    width: 100%;
    min-height: 290px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f7f9fc 100%);
    border: 1px solid #e4ebf2;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.hero-logo-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-img {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* BLOG CONTENT 3-COLUMN SECTION */
.blog-content-section {
    padding: 24px 20px 80px;
    background: #ffffff;
}

.blog-content-layout {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

/* LEFT TOC */
.blog-toc {
    position: sticky;
    top: 120px;
}

.blog-sidebar-box {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid #e6ecf3;
    border-radius: 20px;
    padding: 22px 18px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.blog-sidebar-box h3 {
    font-size: 20px;
    line-height: 1.2;
    color: #0f172a;
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -0.3px;
}

.blog-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.blog-toc-list li {
    margin: 0;
}

.blog-toc-list a {
    position: relative;
    display: block;
    padding: 10px 12px 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: #556274;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-toc-list a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 999px;
    background: transparent;
    transition: background 0.3s ease;
}

.blog-toc-list a:hover {
    background: rgba(124, 102, 241, 0.06);
    color: #7c66f1;
}

.blog-toc-list a:hover::before {
    background: rgba(124, 102, 241, 0.45);
}

.blog-toc-list a.active {
    background: rgba(124, 102, 241, 0.10);
    color: #0f172a;
    font-weight: 700;
}

.blog-toc-list a.active::before {
    background: linear-gradient(180deg, #7b5cff 0%, #ff8b5b 100%);
}

/* MIDDLE ARTICLE */
.blog-article-content {
    min-width: 0;
}

.blog-article-body {
    color: #1e293b;
}

.blog-article-body section {
    margin-bottom: 38px;
    scroll-margin-top: 120px;
}

.blog-article-body h2 {
    font-size: 30px;
    line-height: 1.2;
    color: #0f172a;
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -0.6px;
}

.blog-article-body p {
    font-size: 16px;
    line-height: 1.9;
    color: #4f5d6c;
    margin: 0 0 18px;
}

.blog-article-body ul {
    margin: 0;
    padding-left: 20px;
}

.blog-article-body li {
    font-size: 15px;
    line-height: 1.8;
    color: #233143;
    margin-bottom: 10px;
}

.blog-summary-box {
    background: linear-gradient(180deg, #f4f8ff 0%, #edf4ff 100%);
    border: 1px solid #dce8f7;
    border-left: 4px solid #2f80ed;
    border-radius: 18px;
    padding: 24px 24px 22px;
    margin-bottom: 28px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.blog-summary-box h2 {
    font-size: 28px;
    line-height: 1.15;
    color: #0f172a;
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

.blog-summary-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-summary-box li {
    position: relative;
    padding-left: 20px;
    font-size: 15px;
    line-height: 1.8;
    color: #324155;
    margin: 0;
}

.blog-summary-box li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(180deg, #7b5cff 0%, #ff8b5b 100%);
}

/* RIGHT FORM */
.blog-form-sidebar {
    position: sticky;
    top: 120px;
}

.blog-form-box {
    background: #ffffff;
    border: 1px solid #e7edf3;
    border-radius: 18px;
    padding: 22px 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.blog-form-box h3 {
    font-size: 26px;
    line-height: 1.2;
    color: #0f172a;
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.blog-form-box p {
    font-size: 14px;
    line-height: 1.7;
    color: #5f6b7a;
    margin: 0 0 18px;
}

.blog-form-box form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-form-box input,
.blog-form-box textarea {
    width: 100%;
    border: 1px solid #e1e7ef;
    background: #f8fafc;
    border-radius: 12px;
    padding: 14px 14px;
    font-size: 14px;
    color: #111827;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-form-box input:focus,
.blog-form-box textarea:focus {
    border-color: #7c66f1;
    box-shadow: 0 0 0 3px rgba(124, 102, 241, 0.12);
}

.blog-form-box textarea {
    resize: vertical;
    min-height: 120px;
}

.blog-form-box button {
    border: none;
    border-radius: 999px;
    padding: 14px 18px;
    background: linear-gradient(90deg, #7b5cff 0%, #ff8b5b 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(123, 92, 255, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-form-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(123, 92, 255, 0.24);
}

/* TABLET */
@media (max-width: 1100px) {
    .blog-content-layout {
        grid-template-columns: 220px minmax(0, 1fr) 290px;
        gap: 22px;
    }

    .blog-article-body h2 {
        font-size: 26px;
    }
}

@media (max-width: 992px) {
    .blog-post-hero {
        padding: 42px 20px 50px;
    }

    .blog-post-hero-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .blog-post-hero-content h1 {
        font-size: 38px;
        max-width: 100%;
    }

    .blog-post-hero-visual {
        justify-content: flex-start;
    }

    .hero-logo-card {
        min-height: 240px;
    }

    .hero-logo-img {
        max-width: 250px;
    }

    .blog-content-layout {
        grid-template-columns: 1fr;
    }

    .blog-toc,
    .blog-form-sidebar {
        position: static;
    }

    .blog-toc {
        order: 1;
    }

    .blog-article-content {
        order: 2;
    }

    .blog-form-sidebar {
        order: 3;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .blog-post-hero {
        padding: 36px 16px 44px;
    }

    .blog-post-badge {
        font-size: 12px;
        padding: 6px 12px;
        margin-bottom: 14px;
    }

    .blog-post-hero-content h1 {
        font-size: 30px;
        line-height: 1.12;
        letter-spacing: -0.8px;
        margin-bottom: 14px;
        max-width: 100%;
    }

    .blog-post-description {
        font-size: 14px;
        line-height: 1.65;
        margin-bottom: 18px;
    }

    .blog-post-meta {
        font-size: 13px;
        gap: 10px;
    }

    .hero-logo-card {
        min-height: 220px;
        padding: 22px;
        border-radius: 20px;
    }

    .hero-logo-img {
        max-width: 210px;
    }

    .blog-content-section {
        padding: 18px 16px 60px;
    }

    .blog-sidebar-box,
    .blog-form-box {
        border-radius: 16px;
        padding: 18px 16px;
    }

    .blog-article-body h2 {
        font-size: 24px;
        margin-bottom: 14px;
    }

    .blog-article-body p {
        font-size: 15px;
        line-height: 1.8;
    }

    .blog-summary-box {
        padding: 20px 18px;
        border-radius: 16px;
    }

    .blog-summary-box h2 {
        font-size: 24px;
        margin-bottom: 14px;
    }

    .blog-summary-box li {
        font-size: 14px;
        line-height: 1.75;
    }

    .blog-form-box h3 {
        font-size: 22px;
    }

    .blog-sidebar-box h3 {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .blog-toc-list a {
        font-size: 13.5px;
        padding: 9px 10px 9px 14px;
    }
}

/* INLINE FAQ - INSIDE MIDDLE ARTICLE ONLY */
.blog-inline-faq {
    width: 100%;
    max-width: 100%;
    margin: 40px 0 8px;
}

.blog-inline-faq h2 {
    font-size: 30px;
    line-height: 1.2;
    color: #0f172a;
    font-weight: 800;
    margin: 0 0 18px;
    letter-spacing: -0.6px;
}

.blog-inline-faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 100%;
}

.blog-inline-faq-item {
    width: 100%;
    max-width: 100%;
    border: 1px solid #e6ecf3;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.blog-inline-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: none;
    text-align: left;
    cursor: pointer;
    background: linear-gradient(90deg, #7b5cff 0%, #ff8b5b 100%);
    color: #ffffff;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 700;
}

.blog-inline-faq-question span:first-child {
    flex: 1;
    min-width: 0;
}

.blog-inline-faq-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.3s ease;
}

.blog-inline-faq-answer {
    display: none;
    padding: 16px 18px 18px;
    background: #ffffff;
}

.blog-inline-faq-answer p {
    margin: 0;
    font-size: 15px;
    line-height: 1.85;
    color: #4f5d6c;
    max-width: 100%;
}

.blog-inline-faq-item.active .blog-inline-faq-answer {
    display: block;
}

.blog-inline-faq-item.active .blog-inline-faq-icon {
    transform: rotate(45deg);
}

.blog-inline-faq-question:hover {
    filter: brightness(1.03);
}

@media (max-width: 992px) {
    .blog-inline-faq h2 {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .blog-inline-faq {
        margin: 34px 0 6px;
    }

    .blog-inline-faq h2 {
        font-size: 24px;
        margin-bottom: 14px;
    }

    .blog-inline-faq-list {
        gap: 12px;
    }

    .blog-inline-faq-item {
        border-radius: 16px;
    }

    .blog-inline-faq-question {
        padding: 14px 15px;
        font-size: 14px;
        gap: 12px;
    }

    .blog-inline-faq-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 17px;
    }

    .blog-inline-faq-answer {
        padding: 14px 15px 16px;
    }

    .blog-inline-faq-answer p {
        font-size: 14px;
        line-height: 1.75;
    }
}

/* AUTHOR BIO + SHARE BUTTONS INSIDE MIDDLE COLUMN */
.blog-author-share-wrap {
    width: 100%;
    max-width: 100%;
    margin: 40px 0 10px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.blog-author-card,
.blog-share-card {
    width: 100%;
    border: 1px solid #e6ecf3;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.blog-author-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 20px;
}

.blog-author-avatar {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #7b5cff 0%, #ff8b5b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.blog-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.blog-author-content {
    min-width: 0;
}

.blog-author-label,
.blog-share-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(123, 92, 255, 0.10);
    color: #7b5cff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.blog-author-content h2 {
    font-size: 24px;
    line-height: 1.2;
    color: #0f172a;
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.blog-author-content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.85;
    color: #4f5d6c;
    max-width: 100%;
}

.blog-share-card {
    padding: 20px;
}

.blog-share-card h3 {
    font-size: 20px;
    line-height: 1.25;
    color: #0f172a;
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -0.4px;
}

.blog-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.blog-share-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid #e4eaf2;
    background: linear-gradient(90deg, #7b5cff 0%, #ff8b5b 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    box-shadow: 0 10px 20px rgba(123, 92, 255, 0.14);
}

.blog-share-buttons a:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 14px 24px rgba(123, 92, 255, 0.18);
}

.blog-share-buttons a:focus-visible {
    outline: 2px solid #7b5cff;
    outline-offset: 3px;
}

/* TABLET */
@media (max-width: 992px) {
    .blog-author-content h2 {
        font-size: 22px;
    }

    .blog-share-card h3 {
        font-size: 18px;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .blog-author-share-wrap {
        margin: 34px 0 6px;
        gap: 14px;
    }

    .blog-author-card {
        padding: 16px;
        gap: 14px;
    }

    .blog-author-avatar {
        width: 60px;
        height: 60px;
        min-width: 60px;
        border-radius: 16px;
        padding: 8px;
    }

    .blog-author-content h2 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .blog-author-content p {
        font-size: 14px;
        line-height: 1.75;
    }

    .blog-share-card {
        padding: 16px;
    }

    .blog-share-card h3 {
        font-size: 17px;
        margin-bottom: 14px;
    }

    .blog-share-buttons {
        gap: 10px;
    }

    .blog-share-buttons a {
        padding: 11px 16px;
        font-size: 13px;
    }
}

/* RELATED POSTS SECTION */
.related-posts-section {
    padding: 12px 20px 80px;
    background: #ffffff;
}

.related-posts-container {
    max-width: 1280px;
    margin: 0 auto;
}

.related-posts-heading {
    margin: 0 auto 28px;
    max-width: 760px;
    text-align: center;
}

.related-posts-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(124, 102, 241, 0.10);
    color: #7c66f1;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 14px;
}

.related-posts-heading h2 {
    font-size: 34px;
    line-height: 1.15;
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.7px;
    background: linear-gradient(90deg, #7b5cff 0%, #a855f7 45%, #ec4899 75%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.related-posts-heading p {
    font-size: 16px;
    line-height: 1.8;
    color: #5f6b7a;
    margin: 0 auto;
    max-width: 62ch;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.related-post-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid #e6ecf3;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.related-post-image-wrap {
    display: block;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
    overflow: hidden;
}

.related-post-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 24px;
}

.related-post-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 16px 18px;
}

.related-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    font-size: 12px;
    line-height: 1.4;
    color: #8b93a1;
    font-weight: 600;
}

.related-post-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(124, 102, 241, 0.10);
    color: #7c66f1;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.related-post-card h3 {
    font-size: 18px;
    line-height: 1.45;
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.2px;
}

.related-post-card h3 a {
    color: #0f172a;
    text-decoration: none;
}

.related-post-card h3 a:hover {
    color: #7c66f1;
}

.related-post-card p {
    font-size: 14px;
    line-height: 1.8;
    color: #5f6b7a;
    margin: 0 0 18px;
    flex: 1;
}

.related-post-btn {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    padding: 12px 20px;
    border-radius: 999px;
    background: linear-gradient(90deg, #7b5cff 0%, #ff8b5b 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(123, 92, 255, 0.16);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.related-post-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 14px 28px rgba(123, 92, 255, 0.22);
}

@media (max-width: 1100px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .related-posts-section {
        padding: 4px 16px 60px;
    }

    .related-posts-heading {
        margin: 0 auto 22px;
    }

    .related-posts-heading h2 {
        font-size: 28px;
    }

    .related-posts-heading p {
        font-size: 14px;
        line-height: 1.7;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .related-post-card {
        border-radius: 18px;
    }

    .related-post-card-body {
        padding: 16px 14px 16px;
    }

    .related-post-card h3 {
        font-size: 17px;
    }

    .related-post-card p {
        font-size: 13.5px;
        margin-bottom: 16px;
    }

    .related-post-btn {
        min-width: 124px;
        padding: 11px 18px;
        font-size: 12.5px;
    }
}

/* READING PROGRESS BAR */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(124, 102, 241, 0.08);
    z-index: 9999;
    pointer-events: none;
}

.reading-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #7b5cff 0%, #a855f7 45%, #ec4899 75%, #f97316 100%);
    box-shadow: 0 0 12px rgba(123, 92, 255, 0.28);
    border-radius: 0 999px 999px 0;
    transition: width 0.08s linear;
}

@media (max-width: 768px) {
    .reading-progress-bar {
        height: 3px;
    }
}

/* SCROLL TO TOP BUTTON */
.scroll-top-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #7b5cff 0%, #ff8b5b 100%);
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(123, 92, 255, 0.24);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, box-shadow 0.3s ease;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(123, 92, 255, 0.30);
}

.scroll-top-btn:focus-visible {
    outline: 2px solid #7b5cff;
    outline-offset: 4px;
}

.scroll-top-btn span {
    display: inline-block;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        right: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
        font-size: 21px;
    }
}

.blog-article-cta {
    position: relative;
    overflow: hidden;
    margin: 42px 0;
    padding: 36px 28px;
    border-radius: 24px;
    background: linear-gradient(180deg, #fcfcff 0%, #f7f9ff 100%);
    border: 1px solid rgba(124, 102, 241, 0.14);
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    text-align: center;
    isolation: isolate;
}

.blog-article-cta::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    top: -90px;
    left: -70px;
    border-radius: 50%;
    background: rgba(124, 102, 241, 0.14);
    filter: blur(65px);
    z-index: -1;
}

.blog-article-cta::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -80px;
    bottom: -110px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.14);
    filter: blur(70px);
    z-index: -1;
}

.blog-article-cta h3 {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: #0f172a;
}

.blog-article-cta p {
    max-width: 560px;
    margin: 0 auto 24px;
    font-size: 16px;
    line-height: 1.75;
    color: #5f6b7a;
}

.blog-article-cta-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.blog-article-cta .blog-read-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    min-height: 52px;
    padding: 0 30px;
    border-radius: 999px;
    background: linear-gradient(90deg, #7b5cff 0%, #ff8b5b 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 12px 24px rgba(123, 92, 255, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    border: none;
    cursor: pointer;
}

.blog-article-cta .blog-read-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(123, 92, 255, 0.24);
    background: linear-gradient(90deg, #6d4ff5 0%, #ff7c49 100%);
}

.blog-cta-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.blog-cta-modal.show {
    display: flex;
}

.blog-cta-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
}

.blog-cta-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 760px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid rgba(124, 102, 241, 0.18);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
    padding: 34px 34px 30px;
    z-index: 2;
    overflow: hidden;
}

.blog-cta-modal-dialog::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    top: -100px;
    right: -70px;
    border-radius: 50%;
    background: rgba(124, 102, 241, 0.15);
    filter: blur(70px);
}

.blog-cta-modal-dialog::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    bottom: -110px;
    left: -70px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.14);
    filter: blur(75px);
}

.blog-cta-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #f4f6fb;
    color: #111111;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.blog-cta-modal-close:hover {
    background: #eceffd;
    color: #7c66f1;
}

.blog-cta-modal-step {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #d7ddf2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
    background: #ffffff;
}

.blog-cta-modal-content {
    position: relative;
    z-index: 2;
}

.blog-cta-modal-content h3 {
    font-size: 34px;
    line-height: 1.2;
    font-weight: 800;
    color: #111111;
    margin: 0 0 12px;
    max-width: 620px;
}

.blog-cta-modal-content p {
    font-size: 16px;
    line-height: 1.75;
    color: #5f6b7a;
    margin: 0 0 24px;
    max-width: 620px;
}

.blog-cta-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.blog-cta-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.blog-cta-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-cta-form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #111111;
}

.blog-cta-form-group label span {
    color: #ff5d5d;
}

.blog-cta-form-group input {
    width: 100%;
    height: 54px;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    padding: 0 16px;
    font-size: 15px;
    color: #111111;
    background: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-cta-form-group input:focus {
    outline: none;
    border-color: #7c66f1;
    box-shadow: 0 0 0 4px rgba(124, 102, 241, 0.10);
}

.blog-cta-submit-btn {
    margin-top: 6px;
    width: 100%;
    min-height: 56px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(90deg, #7b5cff 0%, #ff8b5b 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.4px;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(123, 92, 255, 0.20);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.blog-cta-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(123, 92, 255, 0.24);
    background: linear-gradient(90deg, #6d4ff5 0%, #ff7c49 100%);
}

body.blog-modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .blog-article-cta {
        padding: 28px 18px;
        border-radius: 20px;
        margin: 34px 0;
    }

    .blog-article-cta h3 {
        font-size: 24px;
        line-height: 1.2;
    }

    .blog-article-cta p {
        font-size: 14px;
        line-height: 1.7;
    }

    .blog-article-cta .blog-read-btn {
        width: 100%;
        min-width: 100%;
    }

    .blog-cta-modal {
        padding: 16px;
    }

    .blog-cta-modal-dialog {
        padding: 24px 18px 22px;
        border-radius: 22px;
    }

    .blog-cta-modal-step {
        width: 46px;
        height: 46px;
        font-size: 16px;
        margin-bottom: 16px;
    }

    .blog-cta-modal-content h3 {
        font-size: 24px;
    }

    .blog-cta-modal-content p {
        font-size: 14px;
        line-height: 1.7;
    }

    .blog-cta-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog-cta-submit-btn {
        min-height: 52px;
        font-size: 14px;
    }
}

.blog-cta-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.blog-cta-modal.show {
    display: flex;
}

.blog-cta-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(6px);
}

.blog-cta-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 760px;
    background: #ffffff;
    border: 4px solid #8be0f4;
    border-radius: 18px;
    padding: 34px 34px 30px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
    z-index: 2;
}

.blog-cta-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #f3f6fb;
    color: #111111;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-cta-modal-close:hover {
    background: #ebeefe;
    color: #7c66f1;
}

.blog-cta-modal-step {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #444444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 18px;
    background: #ffffff;
}

.blog-cta-modal-content h3 {
    font-size: 34px;
    line-height: 1.3;
    font-weight: 800;
    color: #111111;
    margin: 0 0 24px;
    max-width: 620px;
}

.blog-cta-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.blog-cta-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.blog-cta-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-cta-form-group label {
    font-size: 15px;
    font-weight: 700;
    color: #222222;
}

.blog-cta-form-group label span {
    color: #ff5c5c;
}

.blog-cta-form-group input {
    width: 100%;
    height: 54px;
    border: 1px solid #d8dde8;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 15px;
    color: #111111;
    background: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-cta-form-group input:focus {
    outline: none;
    border-color: #7c66f1;
    box-shadow: 0 0 0 4px rgba(124, 102, 241, 0.10);
}

.blog-cta-submit-btn {
    margin-top: 10px;
    width: 100%;
    min-height: 58px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #ff5b63 0%, #ff7c49 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(255, 91, 99, 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-cta-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(255, 91, 99, 0.28);
}

body.blog-modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .blog-cta-modal {
        padding: 16px;
    }

    .blog-cta-modal-dialog {
        padding: 24px 18px 22px;
    }

    .blog-cta-modal-content h3 {
        font-size: 24px;
        line-height: 1.35;
    }

    .blog-cta-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog-cta-submit-btn {
        font-size: 14px;
        min-height: 52px;
    }
}

.blog-cta-two-section {
    padding: 28px 0;
}

.blog-cta-two-card {
    background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
    border: 1px solid #dbe4f0;
    border-radius: 22px;
    padding: 30px 28px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
}

.blog-cta-two-top {
    margin-bottom: 22px;
    max-width: 780px;
}

.blog-cta-two-top h2 {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
    max-width: 860px;
}

.blog-cta-two-top p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #5b6472;
    max-width: 720px;
}

.blog-cta-two-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.blog-cta-two-form-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.blog-cta-two-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-cta-two-form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.blog-cta-two-form-group label span {
    color: #ff5b63;
}

.blog-cta-two-form-group label .blog-cta-two-optional {
    color: #64748b;
    font-weight: 600;
    margin-left: 4px;
}

.blog-cta-two-form-group input {
    width: 100%;
    height: 52px;
    border: 1px solid #d6dfeb;
    border-radius: 12px;
    background: #ffffff;
    padding: 0 15px;
    font-size: 15px;
    color: #0f172a;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-cta-two-form-group input::placeholder {
    color: #94a3b8;
}

.blog-cta-two-form-group input:focus {
    outline: none;
    border-color: #6d58db;
    box-shadow: 0 0 0 4px rgba(109, 88, 219, 0.10);
    transform: translateY(-1px);
}

.blog-cta-two-submit-btn {
    min-height: 54px;
    padding: 0 26px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #ff5b63 0%, #ff7b4a 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    align-self: flex-start;
    box-shadow: 0 14px 28px rgba(255, 91, 99, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-cta-two-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(255, 91, 99, 0.24);
}

@media (max-width: 991px) {
    .blog-cta-two-card {
        padding: 24px 20px;
    }

    .blog-cta-two-top h2 {
        font-size: 28px;
    }

    .blog-cta-two-form-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .blog-cta-two-section {
        padding: 22px 0;
    }

    .blog-cta-two-card {
        border-radius: 18px;
        padding: 20px 16px;
    }

    .blog-cta-two-top {
        margin-bottom: 18px;
    }

    .blog-cta-two-top h2 {
        font-size: 23px;
        line-height: 1.3;
    }

    .blog-cta-two-top p {
        font-size: 14px;
        line-height: 1.65;
    }

    .blog-cta-two-form-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .blog-cta-two-submit-btn {
        width: 100%;
        min-height: 52px;
    }
}

.blog-form-messages {
    margin-bottom: 15px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.6;
}

.blog-form-error {
    background: #fff4f4;
    color: #b42318;
    border: 1px solid #f3c7cc;
    box-shadow: 0 8px 24px rgba(180, 35, 24, 0.08);
}

.blog-form-error p {
    margin: 0;
}

.thank-you-popup {
    width: min(92vw, 560px);
    max-width: 560px;
    border: none;
    padding: 0;
    margin: auto;
    background: transparent;
    border-radius: 28px;
    overflow: visible;
    position: fixed;
    inset: 0;
}

.thank-you-popup[open] {
    display: grid;
    place-items: center;
}

.thank-you-popup::backdrop {
    background: rgba(18, 16, 30, 0.58);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.thank-you-popup-card {
    position: relative;
    width: 100%;
    border-radius: 28px;
    padding: 34px 32px 30px;
    text-align: center;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(250, 244, 255, 0.94));
    border: 1px solid rgba(151, 71, 255, 0.12);
    box-shadow:
        0 24px 60px rgba(78, 33, 120, 0.22),
        0 8px 24px rgba(255, 130, 92, 0.14);
}

.thank-you-popup-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #7c4dff, #b96bff, #ff8a5b);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.thank-you-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.12), rgba(255, 138, 91, 0.12));
    color: #1e1b39;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(123, 76, 255, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.thank-you-popup-close:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.18), rgba(255, 138, 91, 0.18));
    box-shadow: 0 12px 28px rgba(123, 76, 255, 0.18);
}

.thank-you-popup-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c4dff 0%, #b46cff 50%, #ff8a5b 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 800;
    box-shadow:
        0 18px 35px rgba(124, 77, 255, 0.28),
        0 10px 24px rgba(255, 138, 91, 0.2);
}

.thank-you-popup h2 {
    margin: 0 0 14px;
    font-size: 42px;
    line-height: 1.1;
    font-weight: 800;
    color: #141228;
    letter-spacing: -0.02em;
}

.thank-you-popup p {
    margin: 0 auto 26px;
    max-width: 420px;
    font-size: 18px;
    line-height: 1.75;
    color: #5b5675;
}

.thank-you-popup-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.thank-you-btn {
    min-width: 200px;
    min-height: 54px;
    padding: 14px 22px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.thank-you-btn:hover {
    transform: translateY(-2px);
}

.thank-you-btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, #7c4dff 0%, #b46cff 45%, #ff8a5b 100%);
    box-shadow:
        0 16px 32px rgba(124, 77, 255, 0.24),
        0 8px 20px rgba(255, 138, 91, 0.18);
}

.thank-you-btn-secondary {
    color: #3b345e;
    background: #f4efff;
    border: 1px solid rgba(124, 77, 255, 0.12);
    box-shadow: 0 10px 24px rgba(115, 87, 176, 0.08);
}

.thank-you-btn-primary:hover {
    box-shadow:
        0 20px 36px rgba(124, 77, 255, 0.28),
        0 12px 24px rgba(255, 138, 91, 0.2);
}

.thank-you-btn-secondary:hover {
    background: #efe7ff;
}

@media (max-width: 767px) {
    .thank-you-popup {
        width: min(94vw, 94vw);
    }

    .thank-you-popup-card {
        padding: 28px 18px 22px;
        border-radius: 24px;
    }

    .thank-you-popup-icon {
        width: 72px;
        height: 72px;
        font-size: 34px;
        margin-bottom: 18px;
    }

    .thank-you-popup h2 {
        font-size: 32px;
    }

    .thank-you-popup p {
        font-size: 16px;
        line-height: 1.65;
        margin-bottom: 22px;
    }

    .thank-you-popup-actions {
        flex-direction: column;
    }

    .thank-you-btn {
        width: 100%;
        min-width: 100%;
    }
}