/* .avatar-img{
    clip-path: circle();
}



.blog-description tbody,
td,
tfoot,
th,
thead,
tr {
    border: 2px #ccc solid;
    padding: 20px;
    border-width: 2px !important;
}

.blog-description .text-justify * {
    text-align: inherit !important;
}
.blog-banner-container {
    position: relative;
    background: url("../img/blogs-banner/blogs-banner.png") no-repeat center;
    background-size: cover;
    height: 40vh;
}

.blog-banner-container-ar {
    position: relative;
    background: url("../img/blogs-banner/blogs-banner.png") no-repeat center;
    background-size: cover;
    height: 40vh;
}

.blog-banner-container-ar::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url("../img/blogs-banner/blogs-banner.png") no-repeat center;
    background-size: cover;
    transform: scaleX(-1);
}
.blog-banner-container-single {
    position: relative;
    background: url("../img/blogs-banner/blogDetails-banner.png") no-repeat
        center;
    background-size: cover;
    height: 40vh;
}

.blog-banner-text-container {
    position: relative;
    color: #fff;
}

.blog-banner-text-container-ar {
    position: relative;
    color: #fff;
} */


.page-content {
    padding-bottom: 0px !important;
}

/* Search Bar */
.blog-search-wrapper {
    position: relative;
    max-width: 100%;
}

.blog-search-wrapper.category-page {
    max-width: 100%;
    width: 100%;
}

/* Search Results Dropdown */
/* Search Results Dropdown */
.blog-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 500px;
    overflow-y: auto;
    display: none;
    border: 1px solid #e0e0e0;
}

.blog-search-results.show {
    display: block;
}

.blog-search-result-item {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.blog-search-result-item:last-of-type {
    border-bottom: none;
}

.blog-search-result-item:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: inherit;
}

.blog-search-result-title {
    font-size: 1rem;
    font-weight: 600;
    color: #213C83;
    margin-bottom: 6px;
    line-height: 1.4;
}

.blog-search-result-meta {
    font-size: 0.875rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-search-result-category {
    color: #30ae84;
    font-weight: 500;
}

.blog-search-see-more {
    padding: 16px 20px;
    text-align: center;
    border-top: 2px solid #f0f0f0;
    background-color: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.blog-search-see-more-btn {
    color: #30ae84;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    display: inline-block;
}

.blog-search-see-more-btn:hover {
    color: #258f6a;
    text-decoration: none;
}

.blog-search-loading {
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

.blog-search-no-results {
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

#blog-search-results-list {
    max-height: 400px;
    overflow-y: auto;
}

.blog-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #D8D9DA;
    border-radius: 8px;
    font-size: 16px;
    background-color: #ffffff;
}

.blog-search-input:focus {
    outline: none;
    border-color: #30ae84;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(48, 174, 132, 0.1);
}

.blog-search-input::placeholder {
    color: #213C83;
}

.blog-search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #30AE84;
    font-size: 1.2rem;
    transition: opacity 0.3s ease;
}

html[lang="ar"] .blog-search-icon {
    left: 16px;
    right: auto;
}

html[lang="ar"] .load-more-arrow-img {
    transform: rotate(180deg);
}

.blog-search-icon:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
}

.blog-search-icon-img {
    width: 20px;
    height: 20px;
}

/* Category Filters */
.blog-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
}

.blog-category-filters.category-page {
    width: 100%;
}

.blog-category-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background-color: #fff;
    color: #81858B;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #30AF85;
}


.blog-category-filter:hover {
    background-color: #e9ecef;
    color: #81858B;
    text-decoration: none;
}

.blog-category-filter.active {
    background-color: #30ae84;
    color: #ffffff;
    border-color: #30ae84;
}

.blog-category-filter i {
    font-size: 0.9rem;
}

.blog-category-filter-icon {
    width: 16px;
    height: 16px;
    transition: filter 0.3s ease;
}

.blog-category-filter.active .blog-category-filter-icon {
    filter: brightness(0) invert(1);
}

/* Blog Cards Grid */
.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.blog-cards-grid.category-page {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1200px) {
    .blog-cards-grid.category-page {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .blog-cards-grid {
        grid-template-columns: 1fr;
    }

    .blog-cards-grid.category-page {
        grid-template-columns: 1fr;
    }

    .blog-category-filters {
        justify-content: center;
    }
}

.blog-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #E6EBF2;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: inherit;
}

.blog-card-image-wrapper {
    position: relative;
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    padding: 10px;
}

.blog-card-image-wrapper img {
    border-radius: 12px;
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

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

.blog-card-difficulty {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(1, 51, 127, 0.9);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: 0.3s ease;
}

/* .blog-card-difficulty:hover {
    color: #30AE84;
    transition: 0.3s ease;
} */

.blog-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: #6c757d;
}

.blog-card-category {
    color: #30ae84;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-category:hover {
    color: #258f6a;
    text-decoration: none;
}

.blog-card-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #213C83;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.35rem * 1.4);
    max-height: calc(1.35rem * 1.4 * 2);
}

.blog-card-description {
    font-size: 0.95rem;
    color: #81858B;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.blog-card-description.title-2-lines {
    -webkit-line-clamp: 2;
}

.blog-card-description.title-1-line {
    -webkit-line-clamp: 3;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #B5B4B5;
}

.blog-card-author-name {
    color: #B5B4B5;
}

/* Sidebar Widgets */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.blog-sidebar-widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 24px;
    border: 1px solid #E6EBF2;
}

.blog-sidebar-widget-header {
    margin-bottom: 12px;
}

.blog-sidebar-widget-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #01337f;
    font-size: 1.2rem;
}

.blog-sidebar-widget-title {
    padding-left: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #01337F;
    margin: 0;
}



.blog-sidebar-widget-description {
    padding-left: 5px;
    font-size: 14px !important;
    color: #81858B;
    margin-bottom: 16px;
}

.blog-sidebar-widget-link {
    color: #01337F;
    text-decoration: none;
    padding-left: 5px;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s ease;
}

@media(max-width: 991px) {
    .blog-sidebar {
        margin-top: 0px !important;
    }

    .blog-sidebar .row {
        margin-bottom: 40px;
    }

    .blog-sidebar-widget-title {
        font-size: 14px;
    }

    .blog-sidebar-widget-description {
        display: none;
    }

    /* Mobile: Make widgets equal height and stack icon above title */
    .blog-sidebar .row {
        display: flex !important;
        align-items: stretch;
    }

    .blog-sidebar .row>div {
        display: flex;
    }

    .blog-sidebar-widget {
        flex-direction: column;
        height: 100%;
        justify-content: space-between;
    }

    .blog-sidebar-widget-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        margin-bottom: 12px;
    }

    .blog-sidebar-widget-icon {
        margin-bottom: 8px;
        margin-right: 0 !important;
    }

    .blog-sidebar-widget-title {
        padding-left: 0 !important;
        text-align: center;
    }

    .blog-sidebar-widget-link {
        padding-left: 0 !important;
        text-align: center;
        justify-content: center;
        margin-top: auto;
    }

    .blog-journey-widget {
        display: none !important;
    }
}

.blog-sidebar-widget-link:hover {
    color: #258f6a;
    gap: 10px;
    text-decoration: none;
    transition: 0.3s ease;
}

.blog-sidebar-widget-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 12px;
}

/* Hide Start Your Journey widget on mobile */
.blog-journey-widget {
    display: block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 0;
    overflow: hidden;
    min-height: 300px;
}

.blog-journey-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(1, 51, 127, 0.7) 0%, rgba(1, 51, 127, 0.9) 100%);
    z-index: 1;
}

.blog-journey-content {
    position: relative;
    z-index: 2;
    padding: 16px;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    justify-content: flex-end;
    margin-top: 100px;
}

.blog-journey-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 1.2rem;
}

.blog-journey-icon img {
    filter: brightness(0) invert(1);
}

.blog-journey-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.blog-journey-description {
    font-size: 0.95rem !important;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.6;
}

.blog-journey-button {
    background-color: #ffffff;
    color: #01337f;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-block;
    align-self: flex-start;
}

.blog-journey-button:hover {
    background-color: #f0f0f0;
    color: #01337f;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
    .blog-journey-widget {
        display: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero {
        padding: 60px 0 80px;
    }

    .blog-hero h1 {
        font-size: 2.5rem;
    }

    .blog-hero p {
        font-size: 1.1rem;
    }

    .blog-cards-grid {
        gap: 24px;
    }

    .blog-sidebar {
        position: relative;
        top: 0;
        margin-top: 40px;
    }
}

/* INNER BLOG (SINGLE BLOG) */


/* TOC container style */
#toc-desktop {
    background: transparent;
}

/* Shared list styling */
#toc-list-desktop li,
#toc-list-mobile li {
    list-style-type: none !important;
}

/* Remove all numbering */
#toc-list-desktop,
#toc-list-mobile {
    list-style: none;
    padding-left: 0;
}

#toc-list-desktop li::before,
#toc-list-mobile li::before {
    content: none;
}

/* ==========================
   Indentation
=========================== */
#toc-list-desktop li.toc-h1,
#toc-list-mobile li.toc-h1 {
    font-weight: 600;
    margin-top: 8px;
}

#toc-list-desktop li.toc-h2,
#toc-list-mobile li.toc-h2 {
    margin-left: 0;
}

#toc-list-desktop li.toc-h3,
#toc-list-mobile li.toc-h3 {
    margin-left: 0;
}

/* Nested list styling */
#toc-list-desktop ul ul li,
#toc-list-mobile ul ul li {
    margin-left: 0;
    padding-left: 12px;
}

/* ==========================
   Link Styling
=========================== */
#toc-list-desktop li,
#toc-list-mobile li {
    margin-bottom: 4px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#toc-list-desktop li a,
#toc-list-mobile li a {
    text-decoration: none;
    color: #9CA3AF;
    display: block;
    font-size: 0.95rem;
}

#toc-list-desktop li.active,
#toc-list-mobile li.active {
    background-color: transparent;
    border-left: none;
    padding: 0;
}

#toc-list-desktop li.active > a,
#toc-list-mobile li.active > a {
    background-color: #E6EBF2;
    border-left: 3px solid var(--primary-color);
    padding: 4px 12px ;
    border-radius: 4px;
    color: var(--primary-color);
    display: block;
}

/* RTL support for Arabic - move border to right side */
html[lang="ar"] #toc-list-desktop li.active > a,
html[lang="ar"] #toc-list-mobile li.active > a {
    border-left: none;
    border-right: 3px solid var(--primary-color);
}

/* RTL support for Arabic - adjust padding for nested lists */
html[lang="ar"] #toc-list-desktop ul ul li,
html[lang="ar"] #toc-list-mobile ul ul li {
    padding-left: 0;
    padding-right: 20px;
}

/* RTL support for Arabic - adjust main TOC list padding */
html[lang="ar"] #toc-list-desktop,
html[lang="ar"] #toc-list-mobile {
    padding-left: 0 !important;
    padding-right: 0 !important;
    direction: rtl;
}

/* Ensure nested list items within an active h2 don't inherit any active styling */
#toc-list-desktop li.active > ul,
#toc-list-mobile li.active > ul {
    background-color: transparent;
    margin-top: 4px;
}

#toc-list-desktop li.active > ul li,
#toc-list-mobile li.active > ul li {
    background-color: transparent;
    border-left: none;
    padding: 4px 12px;
}

#toc-list-desktop li.active > ul li a,
#toc-list-mobile li.active > ul li a {
    background-color: transparent;
    border-left: none;
    padding: 0;
    display: block;
}

#toc-list-desktop li a:hover,
#toc-list-mobile li a:hover {
    color: var(--primary-color);
}

/* Currency Converter Widget iframe styling */
.blog-description iframe {
    width: 100% !important;
    max-width: 100%;
    border: none;
    display: block;
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
}

.blog-description iframe[src*="currency-converter"] {
    min-height: 600px;
    background: #f8f9fa;
}



#blog-content .blog-description h1,
#blog-content .blog-description h2,
#blog-content .blog-description h3 {
    color: #213C83 !important;
    font-size: 24px;
    padding: 0;
}

@media(max-width:992px) {
    #blog-content .blog-description h3 {
        font-size: 18px;
    }
}

/* Single Blog Banner */
.single-blog-banner {
    background: linear-gradient(130deg, #00a2b8 0%, #004587 100%);
    padding: 60px 40px;
    margin-bottom: 40px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.single-blog-banner-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.single-blog-banner-tag {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    transition: 0.3s ease;
}

.single-blog-banner-tag:hover {
    color: #30AE84;
    text-decoration: none;
    transition: 0.3s ease;
}

.single-blog-difficulty-tag {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    transition: 0.3s ease;
}

/* .single-blog-difficulty-tag:hover {
    color: #30AE84;
    text-decoration: none;
    transition: 0.3s ease;
} */

.single-blog-banner-tags .tag-separator {
    color: #ffffff;
    font-size: 1rem;
}

.single-blog-banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.3;
}

.single-blog-banner-separator {
    width: 100%;
    height: 1px;
    background-color: #ffffff;
    margin: 30px 0;
    opacity: 0.3;
}

.single-blog-banner-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.single-blog-banner-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.single-blog-banner-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #ffffff;
    white-space: nowrap;
}

.single-blog-banner-meta-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    .single-blog-banner {
        padding: 40px 20px;
    }

    .single-blog-banner-title {
        font-size: 24px;
    }

    .single-blog-banner-meta {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

/* AI Summarize Section */
.single-blog-ai-summarize {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #E6EBF2;
    flex-shrink: 0; 
}

.single-blog-ai-summarize-title {
    font-size: 18px;
    font-weight: 400 !important;
    color: #01337F;
    margin-bottom: 16px;
}

.single-blog-ai-summarize-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.single-blog-ai-summarize-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #E6EBF2;
    background-color: #F3F5F8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.single-blog-ai-summarize-btn:hover {
    background: #f8f9fa;
    border-color: #30AE84;
}

.single-blog-ai-summarize-btn img {
    width: 20px;
    height: 20px;
}

#fc_frame{
    display: none !important;
}

.scrollTop{
    bottom: 100px !important;
}

.single-blog-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 20px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.no-risk .base-button .col-12{
    padding: 0 !important;
}

/* TOC Styles */
#toc-desktop {
    max-height: 500px;
    overflow-y: auto;
    background: transparent;
    flex-shrink: 1;
    min-height: 0; /* Allows flex item to shrink below content size */
}

/* Reduce TOC height on smaller laptop screens to ensure Share buttons are visible */
@media (min-width: 992px) and (max-width: 1400px) {
    #sticky-sidebar-container.is-sticky #toc-desktop {
        max-height: 300px;
    }
}

/* For smaller viewport heights (laptop screens) */
@media (min-width: 992px) and (max-height: 900px) {
    #sticky-sidebar-container.is-sticky {
        max-height: calc(100vh - 150px);
    }
    
    #sticky-sidebar-container.is-sticky #toc-desktop {
        max-height: 250px;
    }
}

/* For very small viewport heights */
@media (min-width: 992px) and (max-height: 800px) {
    #sticky-sidebar-container.is-sticky #toc-desktop {
        max-height: 200px;
    }
}

#toc-desktop::-webkit-scrollbar {
    width: 6px;
}

#toc-desktop::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#toc-desktop::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

#toc-desktop::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Desktop TOC Title */
#toc-desktop>p {
    font-size: 1.1rem;
    font-weight: 700;
    color: #213C83;
    margin-bottom: 16px;
}

/* RTL support for Arabic - change border direction for TOC container */
html[lang="ar"] #toc-desktop.border-right {
    border-right: none !important;
    border-left: 1px solid #dee2e6 !important;
    direction: rtl;
}

/* RTL support for Arabic - ensure nested ul elements are RTL */
html[lang="ar"] #toc-list-desktop ul,
html[lang="ar"] #toc-list-mobile ul {
    direction: rtl;
}

/* Mobile TOC Dropdown */
.toc-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.toc-mobile-header:hover {
    background: #F9FAFB;
}

.toc-mobile-header.active {
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.toc-mobile-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toc-mobile-icon {
    width: 20px;
    height: 20px;
    color: #213C83;
}

.toc-mobile-header p {
    font-size: 0.95rem;
    font-weight: 600;
    color: #213C83;
    margin: 0;
}

.toc-mobile-content {
    display: none;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.toc-mobile-content.show {
    display: block;
}

.toc-mobile-arrow {
    transition: transform 0.3s ease;
    color: #213C83;
}

.toc-mobile-header.active .toc-mobile-arrow {
    transform: rotate(180deg);
}

.single-blog-share {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #E6EBF2;
    flex-shrink: 0; /* Prevent Share section from shrinking */
}

/* Sticky Sidebar Container (Desktop Only) */
#sticky-sidebar-container {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: position, top;
    display: flex;
    flex-direction: column;
}

#sticky-sidebar-container.is-sticky {
    margin-top: 150px;
    z-index: 100;
    max-height: calc(100vh - 170px); /* Viewport height minus top offset and padding */
    overflow: hidden;
}

#sticky-sidebar-container.stopped {
    z-index: 100;
}

/* Ensure smooth transitions when becoming sticky */
@media (min-width: 992px) {
    #sticky-sidebar-container {
        position: relative;
    }
    
    #sticky-sidebar-container.is-sticky {
        position: fixed !important;
    }
    
    #sticky-sidebar-container.stopped {
        position: absolute !important;
    }
}

/* Prevent layout shifts */
@media (min-width: 992px) {
    #sticky-sidebar-container.is-sticky,
    #sticky-sidebar-container.stopped {
        max-width: 100%;
    }
}

/* Sticky Journey Widget Container (Desktop Only) */
#sticky-journey-widget-container {
    /* transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1); */
    will-change: position, top;
}

#sticky-journey-widget-container.is-sticky {
    z-index: 100;
    margin-top: 150px;
}

#sticky-journey-widget-container.stopped {
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Ensure smooth transitions when becoming sticky */
@media (min-width: 992px) {
    #sticky-journey-widget-container {
        position: relative;
    }
    
    #sticky-journey-widget-container.is-sticky {
        position: fixed !important;
    }
    
    #sticky-journey-widget-container.stopped {
        position: absolute !important;
    }
    
    #sticky-journey-widget-container.is-sticky,
    #sticky-journey-widget-container.stopped {
        max-width: 100%;
    }
}

/* Article Summary Section */
.article-summary-container {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #E6EBF2;
    padding: 24px;
    margin-bottom: 24px;
}

.article-summary-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.article-summary-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.article-summary-title {
    font-size: 18px;
    font-weight: 600;
    color: #213C83;
    margin: 0;
    line-height: 1.4;
}

.article-summary-content {
    margin-top: 0;
}

.article-summary-content p {
    font-size: 14px !important;
}

.article-summary-text {
    font-size: 14px;
    color: #4B5563;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}

.article-summary-text p {
    font-size: 1rem;
    color: #4B5563;
    line-height: 1.6;
    margin-bottom: 12px;
}

.article-summary-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .article-summary-container {
        padding: 20px;
    }

    .article-summary-title {
        font-size: 1rem;
    }

    .article-summary-text {
        font-size: 0.95rem;
    }
}

/* Expert Quotes Section */
.expert-quotes-container {
    margin-top: 24px;
    margin-bottom: 24px;
}

.expert-quotes-content {
    position: relative;
    padding: 0px 24px 0px 24px;
    background-color: transparent;
    margin: 0;
}

.expert-quotes-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 10px;
    background-color: #34B278;
    border-radius: 10px;
}

.expert-quotes-content p {
    font-size: 20px;
    font-weight: 700;
    color: #213C83;
    line-height: 1.5;
    margin: 0;
}

.expert-quotes-content * {
    font-size: 20px;
    font-weight: 700;
    color: #213C83;
    line-height: 1.5;
}

.expert-quotes-content h1,
.expert-quotes-content h2,
.expert-quotes-content h3,
.expert-quotes-content h4,
.expert-quotes-content h5,
.expert-quotes-content h6 {
    font-size: 20px;
    font-weight: 700;
    color: #213C83;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.expert-quotes-content h1:last-child,
.expert-quotes-content h2:last-child,
.expert-quotes-content h3:last-child,
.expert-quotes-content h4:last-child,
.expert-quotes-content h5:last-child,
.expert-quotes-content h6:last-child,
.expert-quotes-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .expert-quotes-content {
        padding: 16px 20px 16px 24px;
    }

    .expert-quotes-content p,
    .expert-quotes-content * {
        font-size: 18px;
    }

    .expert-quotes-content h1,
    .expert-quotes-content h2,
    .expert-quotes-content h3,
    .expert-quotes-content h4,
    .expert-quotes-content h5,
    .expert-quotes-content h6 {
        font-size: 18px;
    }
}

/* Related Articles & Keep Learning */
.keep-learning {
    background-color: #F1F1F1;
}

.keep-learning .blog-card {
    background-color: transparent !important;
    border: 1px solid #CCD6E5;
}

.single-blog-section-title {
    font-size: 40px;
    font-weight: 600;
    text-align: center;
    color: #213C83;
    margin-bottom: 30px;
    margin-top: 60px;
}

.single-blog-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.risk-warning {
    background-color: #213C83;
}


@media (max-width: 992px) {
    .single-blog-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .single-blog-section-title {
        font-size: 24px;
    }
    
    .blog-card-image-wrapper {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .single-blog-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card-image-wrapper {
        max-height: 300px;
    }
}

/* Copy styles from blogs.blade.php for consistency */


.blog-sidebar-widget-icon {
    margin-right: 12px;
}

/* Key Highlights / Key Takeaways Section */
.key-highlights-container {
    margin-top: 40px;
    margin-bottom: 40px;
    background: transparent;
}

.key-highlights-title {
    font-size: 24px;
    font-weight: 6700;
    color: #213C83;
    margin-bottom: 20px;
    line-height: 1.4;
}

.key-highlights-content {
    color: #4B5563;
    line-height: 1.6;
}

/* Remove default list styling and replace with custom checkmark icon */
.key-highlights-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.key-highlights-content ul li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    font-size: 1rem;
    color: #4B5563;
    line-height: 1.6;
}

.key-highlights-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 20px;
    height: 20px;
    background-image: url('/img/blogs/blogs-takeways-mark-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* Handle paragraphs - only add icon if they don't already have one */
.key-highlights-content>p {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    font-size: 1rem;
    color: #4B5563;
    line-height: 1.6;
}

.key-highlights-content>p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 20px;
    height: 20px;
    background-image: url('/img/blogs/blogs-takeways-mark-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* Handle divs - only direct children that don't contain lists */
.key-highlights-content>div {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    font-size: 1rem;
    color: #4B5563;
    line-height: 1.6;
}

.key-highlights-content>div::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 20px;
    height: 20px;
    background-image: url('/img/blogs/blogs-takeways-mark-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* Don't add icon to divs that contain lists (lists handle their own icons) */
.key-highlights-content>div ul {
    padding-left: 0;
}

.key-highlights-content>div ul::before {
    display: none;
}

/* Override any existing list styles */
.key-highlights-content ul li::marker {
    display: none;
}

@media (max-width: 768px) {
    .key-highlights-title {
        font-size: 18px;
        padding: 0;
    }

    .key-highlights-content ul li,
    .key-highlights-content p,
    .key-highlights-content>div {
        font-size: 14px;
        padding-left: 15px;
    }

    .key-highlights-content ul li::before,
    .key-highlights-content p::before,
    .key-highlights-content>div::before {
        width: 18px;
        height: 18px;
    }
}

/* Related Articles Section */
.related-articles-section {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #E6EBF2;
    padding: 24px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.related-articles-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.related-articles-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.related-articles-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #213C83;
    margin: 0;
    line-height: 1.4;
}

.related-articles-separator {
    width: 100%;
    height: 1px;
    background-color: #E5E7EB;
    margin-bottom: 20px;
}

.related-articles-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.related-article-item {
    margin-bottom: 16px;
}

.related-article-item:last-child {
    margin-bottom: 0;
}

.related-article-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.related-article-item a:hover {
    opacity: 0.8;
}

.related-article-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.related-article-title {
    font-size: 18px;
    color: var(--primary-color);
    line-height: 1.5;
    font-weight: 600;
}

@media (max-width: 768px) {
    .related-articles-section {
        padding: 20px;
        margin-top: 32px;
        margin-bottom: 32px;
    }

    .related-articles-title {
        font-size: 1.1rem;
    }

    .related-article-title {
        font-size: 0.95rem;
    }
}

/* Newsletter Banner */
.newsletter-banner {
    background: linear-gradient(90deg, #00a2b8 0%, #004587 100%);
    padding: 50px 20px;
    border-radius: 12px;
}

.newsletter-banner-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.newsletter-banner-description {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 32px;
    line-height: 1.6;
    opacity: 0.95;
}

.newsletter-banner-button {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.newsletter-banner-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.newsletter-banner-button:active {
    transform: translateY(0);
}

.newsletter-banner-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .newsletter-banner {
        padding: 40px 20px;
        margin: 0px;
    }

    .newsletter-banner-title {
        font-size: 1.8rem;
    }

    .newsletter-banner-description {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .newsletter-banner-button {
        font-size: 1rem;
        padding: 12px 24px;
    }
}


.blogs-sub-banner-gradient .avatar-icon-for-banner {
    position: absolute;
    right: 0;
    bottom: 0;
    top: 0;
    height: 100%;
    width: auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0;
    margin: 0;
    z-index: 1;
    pointer-events: none;
}

.blogs-sub-banner-gradient .avatar-icon-for-banner img {
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;
    object-position: bottom right;
    display: block;
    margin: 0;
    padding: 0;
    align-self: flex-end;
    pointer-events: auto;
}

/* Blogs Sub Banner - Gradient Style */
.blogs-sub-banner-gradient {
    background: linear-gradient(90deg, #30AE84 0%, #213C83 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    min-height: 180px;
}

/* RTL support for Arabic - reverse gradient direction */
html[lang="ar"] .blogs-sub-banner-gradient {
    background: linear-gradient(270deg, #30AE84 0%, #213C83 100%);
}

.blogs-sub-banner-gradient.p-4 {
    padding: 1.5rem !important;
}

.blogs-sub-banner-gradient .row {
    margin: 0;
    position: static;
    z-index: 1;
}

.blogs-sub-banner-gradient .row>div:first-child {
    position: relative;
    z-index: 2;
    padding-right: 30%;
}

/* RTL support for Arabic - adjust padding and icon position */
html[lang="ar"] .blogs-sub-banner-gradient .avatar-icon-for-banner {
    right: auto;
    left: 0;
    justify-content: flex-start;
}

html[lang="ar"] .blogs-sub-banner-gradient .avatar-icon-for-banner img {
    object-position: bottom left;
}

html[lang="ar"] .blogs-sub-banner-gradient .row>div:first-child {
    padding-right: 0;
    padding-left: 30%;
    direction: rtl;
    text-align: right;
}

@media (max-width: 991px) {
    .blogs-sub-banner-gradient .row>div:first-child {
        padding-right: 0;
    }
    
    html[lang="ar"] .blogs-sub-banner-gradient .row>div:first-child {
        padding-left: 0;
    }

    .avatar-icon-for-banner {
        position: relative;
        width: 100%;
        height: auto;
        margin-top: 20px;
    }

    .avatar-icon-for-banner img {
        width: 100%;
        height: auto;
        max-height: 200px;
    }
}

.blogs-sub-banner-title {
    font-size: 24px !important;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.blogs-sub-banner-desc {
    font-size: 16px;
    color: #ffffff;
    line-height: 1.6;
    opacity: 0.95;
}


.banner-img-blogs {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.no-risk .base-button {
    min-width: auto !important;
}

@media (max-width: 768px) {
    .blogs-sub-banner-gradient {
        padding: 40px 20px !important;
    }

    .blogs-sub-banner-title {
        font-size: 1.8rem;
    }

    .blogs-sub-banner-desc {
        font-size: 1rem;
    }

    .blogs-sub-banner-btn {
        font-size: 1rem;
        padding: 12px 24px;
    }
}