/* 
   blog-style.css
   Specific styles for the Learmo Blog page
*/
.mark,
mark {
    padding: 0 !important;
}

.blog-hero-section {
    padding: 160px 0 100px;
    background-color: #ffffff;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.single-blog-hero .container {
    max-width: 1400px;
}


/* Hero Typography Overrides/Refinements */
.blog-hero-section .section-headline {
    font-size: calc(2.8rem + 1.5vw);
    line-height: 1.05;
    margin-bottom: 1.5rem !important;
}

.blog-hero-desc {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-muted);
}



/* Button Refinements */
.blog-btn-explore {
    background-color: #fafbfc !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    color: #191B24 !important;
    font-size: 18px;
    font-weight: 500;
}

.blog-btn-explore:hover {
    background-color: #f3f5f7 !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .blog-hero-section {
        padding: 120px 0 80px;
    }

    .blog-hero-section .section-headline {
        font-size: calc(2.2rem + 1vw);
        text-align: center;
    }

    .single-blog-hero .section-headline {
        text-align: center;
    }

    .article-tags {
        justify-content: center;
    }

    .article-card-title,
    .toc-title {
        text-align: center;
    }

    .info-icon-circle {
        margin: auto;
    }
}

@media (max-width: 767px) {
    .blog-hero-section {
        padding: 100px 0 60px;
    }

    .blog-hero-section .section-headline {
        font-size: 2.25rem;
    }

    .blog-hero-desc {
        font-size: 1.05rem;
    }

    .blog-hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .blog-hero-actions .btn-join-waitlist,
    .blog-hero-actions .blog-btn-explore {
        width: 100%;
    }
}

/* Article sections */
#explore-articles {
    scroll-margin-top: 100px;
}

.article-section {
    scroll-margin-top: 120px;
}

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

.article-text-p :where(ul, ol) {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
}

.article-text-p li+li {
    margin-top: 0.65rem;
}

/* Blog pagination */
.blog-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.blog-pagination__summary {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.blog-pagination__summary strong {
    color: #191b24;
    font-weight: 700;
}

.blog-pagination__controls,
.blog-pagination__pages {
    display: flex;
    align-items: center;
}

.blog-pagination__controls {
    justify-content: center;
    gap: 0.75rem;
}

.blog-pagination__pages {
    gap: 0.5rem;
}

.blog-pagination__direction,
.blog-pagination__page,
.blog-pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 46px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    color: #334155;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
}

.blog-pagination__direction {
    gap: 0.65rem;
    min-width: 122px;
    padding: 0 1rem;
}

.blog-pagination__direction i {
    font-size: 0.75rem;
}

.blog-pagination__direction:hover,
.blog-pagination__page:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    box-shadow: 0 8px 22px rgba(20, 88, 217, 0.1);
}

.blog-pagination__page.is-current {
    border-color: var(--primary-blue);
    background: var(--primary-blue);
    color: #fff;
    box-shadow: 0 8px 22px rgba(20, 88, 217, 0.22);
}

.blog-pagination__direction.is-disabled {
    background: #f8fafc;
    color: #cbd5e1;
    cursor: not-allowed;
}

.blog-pagination__ellipsis {
    border-color: transparent;
    color: #94a3b8;
}

@media (max-width: 575px) {
    .blog-pagination__controls {
        width: 100%;
        gap: 0.4rem;
    }

    .blog-pagination__direction {
        min-width: 46px;
        padding: 0;
    }

    .blog-pagination__direction span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .blog-pagination__page,
    .blog-pagination__direction,
    .blog-pagination__ellipsis {
        min-width: 42px;
        height: 42px;
        border-radius: 12px;
    }
}

/* Featured Articles Section */
.featured-main-title {
    font-size: calc(1.8rem + 1vw);
    font-weight: 700;
}

.featured-article-card-frame {
    border: 3px solid #0061FF;
    border-radius: 24px;
    background-color: #ffffff;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(20, 88, 217, 0.05);
    padding: 48px;
}



.article-pill-tag,
.article-pill-tag-2 {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 9999px;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.65rem;
    background-color: rgba(20, 88, 217, 0.02);
    box-shadow: 0px 4px 14px 0px rgba(0, 97, 255, 0.3);
}

.article-pill-tag-2 {
    background-color: #00297E;
    color: #ffffff;
    border: none;

}

.article-category-pill {
    --category-color: #1458D9;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 6px 12px;
    border: 1px solid var(--category-color);
    border-radius: 9999px;
    background: #f8fafc;
    background: color-mix(in srgb, var(--category-color) 9%, white);
    color: #334155;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
}

.article-category-pill__dot {
    width: 0.5rem;
    height: 0.5rem;
    flex: 0 0 0.5rem;
    border-radius: 50%;
    background: var(--category-color);
}

.article-category-pill.is-uncategorized {
    --category-color: #94a3b8 !important;
    background: #f8fafc;
}

.featured-title {
    font-weight: 800;
    font-size: 1.875rem;
    line-height: 1.2;
    color: var(--text-dark);
}

.featured-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.article-meta-info .meta-item {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.article-meta-info .meta-item svg {
    opacity: 0.7;
}

.featured-read-btn {
    padding: 1.1rem 2.8rem !important;
    font-size: 1.05rem !important;
    border-radius: 999px !important;
}

.featured-image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 24px;
}

.featured-article-img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Responsive Adjustments for Featured Section */
@media (max-width: 991px) {

    .featured-article-card-frame>.row {
        display: flex;
        flex-direction: column;
    }

    .featured-content-col {
        display: contents;
    }

    .featured-image-col {
        order: 2;
    }

    .featured-copy {
        order: 1;
        padding: 3rem 2.5rem 0;
    }

    .featured-action-wrapper {
        order: 3;
        padding: 0 2.5rem 3rem;
        margin: auto;
    }


    .featured-title {
        font-size: 1.8rem;
    }

    .featured-article-card-frame {
        border-radius: 24px;
        padding: 24px;
    }
}

@media (max-width: 767px) {

    .featured-content-col,
    .featured-image-col {
        text-align: center;
    }

    .article-tags-row {
        justify-content: center;
    }

    .article-meta-info {
        justify-content: center;
        gap: 1.5rem !important;
    }

    .featured-read-btn {
        width: 100%;
    }

    .featured-copy {
        padding: 2.5rem 1.5rem 0;
        text-align: center;
    }

    .featured-action-wrapper {
        padding: 0 1.5rem 2.5rem;
        text-align: center;
    }

    .featured-image-col {
        height: auto;
    }
}

@media (min-width: 992px) {

    .featured-image-col,
    .featured-copy,
    .featured-action-wrapper {
        order: initial;
    }
}

/* Single Blog Page Styles */
.single-blog-hero {
    background-color: #ffffff;
}




.single-hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 32px !important;
}

.single-article-body {
    /* Clipping avoids horizontal bleed without becoming a scroll container,
       which would prevent the TOC from sticking to the viewport. */
    overflow-x: clip;
}

.article-content-wrapper {
    width: 100%;
    max-width: 820px;
    overflow-wrap: break-word;
    padding: 0rem 1rem;
}

.article-content-wrapper h1,
.article-content-wrapper h2,
.article-content-wrapper h3,
.article-content-wrapper h4,
.article-content-wrapper h5,
.article-content-wrapper h6,
.article-content-wrapper p {
    text-align: left !important;
}

.static-page-content :is(.static-page-numbered-clause, .static-page-clause-continuation) {
    padding-inline-start: min(calc(var(--static-page-clause-depth, 0) * 2rem), 8rem);
}

.static-page-content .static-page-numbered-clause {
    margin-block-end: 1.5rem;
}

.static-page-content .static-page-clause-line {
    display: block;
}

.static-page-content .static-page-clause-line.static-page-numbered-clause {
    margin-block-end: 1rem;
}

.static-page-content .static-page-clause-line:last-child {
    margin-block-end: 0;
}

.static-page-content .static-page-numbered-clause[data-clause-depth="0"] {
    margin-block-start: 2.25rem;
    margin-block-end: 1rem;
}

.static-page-content > .static-page-numbered-clause:first-child {
    margin-block-start: 0;
}

.article-content-wrapper :where(img, video, iframe, embed, object) {
    max-width: 100%;
}

.article-content-wrapper :where(img, video) {
    height: auto;
}

.article-content-wrapper iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 320px;
    border: 0;
}

.article-content-wrapper table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    -webkit-overflow-scrolling: touch;
}

.article-content-wrapper pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 1.25rem;
    border-radius: 16px;
    background-color: #0f172a;
    color: #e2e8f0;
    -webkit-overflow-scrolling: touch;
}

.article-content-wrapper code {
    overflow-wrap: break-word;
}

.article-content-wrapper blockquote,
.article-info-box {
    max-width: 100%;
}

.article-content-wrapper blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--primary-blue);
    border-radius: 18px;
    background-color: #F0F7FF;
    color: #1f2937;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.7;
}

.article-toc-column {
    position: sticky;
    top: 120px;
    align-self: flex-start;
    z-index: 20;
}

.toc-sticky-wrapper {
    max-height: calc(100vh - 144px);
    overflow-y: auto;
    padding-right: 2rem;
}

.toc-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #94A3B8;
    letter-spacing: 1.5px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 0.8rem;
    padding-left: 1.2rem;
    border-left: 2px solid transparent;
}

.toc-item a {
    text-decoration: none;
    color: #64748B;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.toc-item.active {
    border-left-color: var(--primary-blue);
}

.toc-item.active a,
.toc-item a:hover {
    color: var(--primary-blue);
}

.article-section-title {
    font-weight: 700;
    font-size: clamp(1.55rem, 2.4vw, 1.95rem);
    line-height: 1.25;
    color: var(--text-dark);
}

.article-text-p {
    font-size: clamp(1rem, 1.25vw, 1.1rem);
    line-height: 1.8;
    color: var(--text-muted);
}

.article-info-box {
    background-color: #F0F7FF;
    padding: 30px 40px;
    border-radius: 20px;
    margin-bottom: 2.5rem;
}

.info-icon-circle {
    width: 24px;
    height: 24px;
    color: #2563EB;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-box-text {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.65;
    color: #1a1a1a;
    font-style: italic;
}

.article-inline-cta {
    background-color: #DCE9F6;
    border-radius: 24px;
    padding: 40px;
    color: #111827;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.inline-cta-heading {
    font-weight: 700;
    font-size: clamp(1.55rem, 2.7vw, 2rem);
    line-height: 1.25;
    margin-bottom: 1.2rem;
}

.inline-cta-subtext {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #4B5563;
    opacity: 1;
    max-width: 500px;
}

.inline-btn-cta {
    background: linear-gradient(90deg, #2563EB 0%, #3B82F6 100%) !important;
    color: #ffffff !important;
    padding: 14px 32px !important;
    font-size: 1rem !important;
    font-weight: 600;
    border-radius: 9999px !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25) !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease !important;
}

.inline-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35) !important;
}

.cta-decoration-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-decoration-icon svg {
    color: #4A78FF;
    opacity: 1;
}

@media (max-width: 991px) {
    .single-blog-hero {
        padding-top: 3.5rem !important;
    }




    .single-hero-image-wrapper img {
        border-radius: 24px !important;
    }

    .single-blog-hero .article-meta-info {
        gap: 1rem !important;
    }

    .article-content-wrapper {
        max-width: 100%;
    }

    .article-toc-column {
        top: 86px;
        z-index: 900;
    }

    .toc-sticky-wrapper {
        max-height: none;
        overflow-y: visible;
        margin-bottom: 2rem;
        padding-right: 0;
        padding: 1.1rem;
        border-radius: 18px;
        background-color: #F8FAFC;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    }

    .toc-list {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.75rem;
        overflow-x: auto;
        padding-bottom: 0.15rem;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .toc-list::-webkit-scrollbar {
        display: none;
    }

    .toc-item {
        flex: 0 0 auto;
        margin-bottom: 0;
        padding: 0.55rem 0.9rem;
        border-left: 0;
        border-radius: 999px;
        background-color: #ffffff;
    }

    .toc-item.active {
        background-color: rgba(20, 88, 217, 0.1);
    }

    .article-section-title {
        font-size: clamp(1.4rem, 4vw, 1.7rem);
    }

    .article-info-box {
        padding: 24px 28px;
    }

    .article-inline-cta {
        padding: 42px 36px !important;
    }

    .article-content-wrapper iframe {
        min-height: 280px;
    }

    .comments-section,
    .comment-list,
    .comment-replies {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .single-blog-hero {
        padding-top: 2.5rem !important;
    }

    .single-blog-hero .container {
        padding-inline: 1rem;
    }




    .single-blog-hero .article-meta-info .meta-item {
        justify-content: center;
        font-size: 0.86rem;
    }


    .single-hero-image-wrapper img {
        border-radius: 20px !important;
    }

    .single-article-body .container,
    .related-articles-section .container {
        padding-inline: 1rem;
    }

    .single-article-body .row {
        --bs-gutter-y: 2rem;
    }

    .article-text-p {
        line-height: 1.72;
    }

    .static-page-content :is(.static-page-numbered-clause, .static-page-clause-continuation) {
        padding-inline-start: min(calc(var(--static-page-clause-depth, 0) * 1rem), 3rem);
    }

    .article-info-box {
        padding: 1.25rem;
        border-radius: 18px;
    }

    .info-box-text {
        font-size: 1rem;
        line-height: 1.65;
    }

    .article-content-wrapper blockquote {
        padding: 1.15rem 1.25rem;
        border-radius: 16px;
        font-size: 1rem;
    }

    .article-content-wrapper iframe {
        min-height: 220px;
    }

    .article-content-wrapper pre {
        padding: 1rem;
        font-size: 0.86rem;
    }

    .article-inline-cta {
        padding: 32px 22px !important;
        border-radius: 20px;
        text-align: center;
    }

    .inline-cta-subtext {
        max-width: none;
        font-size: 0.95rem;
    }

    .inline-btn-cta {
        width: 100%;
        justify-content: center;
    }

    .related-articles-section .section-headline {
        font-size: clamp(1.9rem, 9vw, 2.5rem);
        text-align: center;
    }

    .comment,
    .comment-body {
        max-width: 100%;
    }

    .comment-replies,
    .comment .children {
        margin-left: 1rem !important;
        padding-left: 0.75rem !important;
    }
}

@media (max-width: 575px) {

    .single-blog-hero .section-headline br,
    .inline-cta-heading br,
    .cta-heading br {
        display: none;
    }



    .toc-sticky-wrapper {
        padding: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .toc-item {
        padding: 0.5rem 0.8rem;
    }

    .toc-item a {
        font-size: 0.86rem;
    }

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

    .article-text-p {
        font-size: 0.98rem;
    }

    .article-content-wrapper iframe {
        min-height: 190px;
    }

    .comment-replies,
    .comment .children {
        margin-left: 0.5rem !important;
        padding-left: 0.5rem !important;
    }
}

/* Articles Grid Section */
.articles-grid-section {
    background-color: #FFFFFF;
}

.search-bar-container .input-group {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.search-bar-container .input-group:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(20, 88, 217, 0.05);
}

.search-bar-container .input-group-text {
    border: none;
}

.search-bar-container .form-control {
    border: none;
}

.search-bar-container .form-control:focus {
    box-shadow: none;
}

.search-bar-container {
    position: relative;
    z-index: 5;
}

.blog-search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    z-index: 20;
    max-height: 330px;
    padding: 8px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(31, 42, 68, 0.14);
}

.blog-search-suggestions[hidden] {
    display: none;
}

.blog-search-suggestion {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    color: #20283a;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 11px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
}

.blog-search-suggestion::before {
    content: "\f02d";
    flex: 0 0 auto;
    color: var(--primary-blue);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.blog-search-suggestion:hover,
.blog-search-suggestion.is-active {
    color: var(--primary-blue);
    background: rgba(20, 88, 217, 0.07);
}

.blog-search-suggestion mark {
    color: var(--primary-blue);
    background: transparent;
}

.blog-search-suggestion__title {
    min-width: 0;
}

.filter-tab-btn {
    --category-color: #1458D9;
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    border-color: color-mix(in srgb, var(--category-color) 32%, #e2e8f0);
    background-color: #f8fafc;
    background-color: color-mix(in srgb, var(--category-color) 6%, white);
    color: #424656;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
}

.filter-tab-btn::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    flex: 0 0 0.45rem;
    border-radius: 50%;
    background: var(--category-color);
    margin-right: 5px;
}

.filter-tab-btn:hover {
    background-color: #F1F5F9;
    color: #475569;
}

.filter-tab-btn.active {
    background-color: #eff6ff;
    background-color: color-mix(in srgb, var(--category-color) 14%, white);
    color: #191b24;
    border-color: var(--category-color);
    box-shadow: inset 0 0 0 1px var(--category-color), 0 6px 18px rgba(20, 88, 217, 0.08);
}

.filter-tab-btn.active:hover {
    color: #191b24;
}

.blog-empty-state {
    padding: 3rem 1.5rem;
    border: 1px dashed #cbd5e1;
    border-radius: 24px;
    color: #64748b;
    background: #f8fafc;
}

.sort-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94A3B8;
    letter-spacing: 1px;
}

.sort-select {
    padding: 8px 16px;
    border-radius: 48px;
    font-size: 0.85rem;
    font-weight: 600;
    background-color: #F2F3FF;
    border: none;
    width: auto;
}

/* Article Cards */
.article-card {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-card:hover {
    border-radius: 32px;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.article-thumb-wrapper {
    padding: 1rem;
    padding-bottom: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.article-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
    display: block;
}

.article-card-body {
    padding: 1.5rem 2rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card-title {
    font-weight: 700;
    font-size: clamp(1.12rem, 1.2vw, 1.35rem);
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.article-card-excerpt {
    font-size: clamp(0.88rem, 0.9vw, 0.95rem);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.article-meta-info .meta-item-small {
    display: flex;
    align-items: center;
    color: #94A3B8;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-card-btn {
    margin-top: auto;
    padding: 0.9rem 2rem !important;
    font-size: 0.95rem !important;
    border-radius: 999px !important;
    width: fit-content;
}

.article-card-item {
    display: flex;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-controls-wrapper {
    width: 100%;
}

.filter-tabs {
    min-width: 0;
}

/* Responsive Table */
@media (max-width: 991px) {
    .blog-hero-section .section-headline {
        font-size: clamp(2.25rem, 6vw, 3.4rem);
    }

    .blog-hero-desc br,
    .section-description br {
        display: none;
    }

    .featured-image-wrapper {
        aspect-ratio: 16 / 10;
        height: auto;
    }

    .featured-article-img {
        min-height: 100%;
    }

    .filter-controls-wrapper>.d-flex {
        align-items: stretch !important;
    }

    .filter-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.25rem;
    }

    .filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .filter-tab-btn {
        flex: 0 0 auto;
    }

    .sort-dropdown-wrapper {
        flex: 0 0 auto;
    }
}

@media (max-width: 767px) {
    .filter-controls-wrapper {
        text-align: left;
    }

    .filter-tabs {
        justify-content: flex-start;
        width: 100%;
        margin-inline: -0.25rem;
        padding-inline: 0.25rem;
    }

    .sort-dropdown-wrapper {
        justify-content: space-between;
        width: 100%;
    }

    .sort-select {
        min-width: 150px;
    }

    .article-thumb-wrapper {
        aspect-ratio: 16 / 9;
        padding: 0.85rem;
        padding-bottom: 0;
    }

    .article-card-body {
        padding: 1.2rem 1.25rem 1.4rem;
    }

    .article-card-title {
        -webkit-line-clamp: 2;
        line-height: 1.32;
    }

    .article-card-excerpt {
        -webkit-line-clamp: 2;
    }

    .article-meta-info {
        flex-wrap: wrap;
        row-gap: 0.45rem !important;
    }

    .article-card-btn {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .blog-hero-section {
        min-height: auto;
    }

    .blog-hero-section .section-headline {
        font-size: clamp(2rem, 10vw, 2.5rem);
        line-height: 1.08;
    }

    .featured-main-title {
        font-size: clamp(1.7rem, 8vw, 2.25rem);
    }

    .featured-title {
        font-size: 1.45rem;
    }

    .featured-description {
        font-size: 0.95rem;
    }

    .article-pill-tag,
    .article-pill-tag-2 {
        font-size: 0.6rem;
        padding: 5px 10px;
    }

    .filter-tab-btn {
        padding: 9px 18px;
        font-size: 0.84rem;
    }
}

/* CTA Section Styles */


.cta-image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cta-newsletter-form {
    display: block;
    width: 100%;
    max-width: 680px;
}

.newsletter-form-feedback {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    color: #7f1d1d;
    text-align: left;
    background: #fff7f7;
    border: 1px solid #fecaca;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(69, 20, 20, 0.12);
}

.newsletter-form-feedback__icon {
    display: inline-grid;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    background: #dc2626;
    border-radius: 50%;
    place-items: center;
}

.newsletter-form-feedback strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.9rem;
}

.newsletter-form-feedback p {
    margin: 0;
    color: #991b1b;
    font-size: 0.8rem;
    line-height: 1.45;
}

.newsletter-form-feedback:focus-visible {
    outline: 3px solid rgba(254, 202, 202, 0.65);
    outline-offset: 3px;
}

.cta-form-group {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
}

.newsletter-email-field {
    flex: 1;
    min-width: 0;
}

.newsletter-email-control {
    position: relative;
}

.newsletter-email-control__icon {
    position: absolute;
    top: 50%;
    left: 1.15rem;
    z-index: 1;
    color: #bfcef4;
    pointer-events: none;
    transform: translateY(-50%);
    transition: color 0.2s ease;
}

.newsletter-recaptcha {
    align-items: flex-start;
    margin-top: 1rem;
}

.newsletter-recaptcha .recaptcha-field-error {
    color: #fecaca;
}

.newsletter-field-error {
    margin: 0.5rem 0.25rem 0;
    color: #fee2e2;
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.4;
}

.cta-input {
    width: 100%;
    min-height: 52px;
    padding: 0.9rem 1.25rem 0.9rem 3.2rem;
    border-radius: 999px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cta-input::placeholder {
    color: #94A3B8;
    font-weight: 500;
}

.cta-input:focus {
    background-color: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
}

.newsletter-email-control:focus-within .newsletter-email-control__icon {
    color: #ffffff;
}

.newsletter-email-field.is-invalid .cta-input {
    color: #ffffff;
    background-color: rgba(127, 29, 29, 0.28);
    border-color: #fecaca;
    box-shadow: 0 0 0 4px rgba(254, 202, 202, 0.15);
}

.newsletter-email-field.is-invalid .newsletter-email-control__icon {
    color: #fecaca;
}

.cta-btn-subscribe {
    gap: 0.55rem;
    min-height: 52px;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 999px;
    background-color: #ffffff;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
}

.cta-btn-subscribe__icon {
    transition: transform 0.2s ease;
}

.cta-btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.35);
    background-color: #f8fbff;
}

.cta-btn-subscribe:hover .cta-btn-subscribe__icon {
    transform: translateX(3px);
}

.cta-btn-subscribe:active {
    transform: translateY(0);
}

.cta-btn-subscribe:disabled {
    cursor: wait;
    opacity: 0.78;
    transform: none;
}

.newsletter-success-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0.25rem 1rem;
    width: 100%;
    max-width: 680px;
    padding: 1.25rem;
    color: #ffffff;
    text-align: left;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(10, 39, 110, 0.2);
    animation: newsletter-success-enter 0.42s ease both;
    backdrop-filter: blur(8px);
}

.newsletter-success-card:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.45);
    outline-offset: 4px;
}

.newsletter-success-card__icon {
    display: grid;
    grid-row: 1 / span 2;
    width: 58px;
    height: 58px;
    color: var(--primary-blue);
    background: #ffffff;
    border: 7px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(9, 35, 91, 0.24);
    place-items: center;
}

.newsletter-success-card__icon svg {
    width: 25px;
    height: 25px;
}

.newsletter-success-card__eyebrow {
    margin: 0 0 0.35rem;
    color: #dce8ff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.newsletter-success-card h3 {
    margin: 0 0 0.45rem;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.newsletter-success-card__content > p:last-child {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    line-height: 1.55;
}

.newsletter-success-card__content strong {
    color: #ffffff;
    overflow-wrap: anywhere;
}

.newsletter-success-card__action {
    grid-column: 2;
    justify-self: start;
    padding: 0;
    margin-top: 0.55rem;
    color: #ffffff;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.newsletter-success-card__action:hover,
.newsletter-success-card__action:focus-visible {
    color: #ffffff;
    border-color: #ffffff;
    outline: none;
}

@keyframes newsletter-success-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .newsletter-success-card {
        animation: none;
    }

    .cta-btn-subscribe__icon {
        transition: none;
    }
}

@media (min-width: 992px) {
    .cta-card {
        min-height: 360px;
    }



    .cta-profile-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        border-radius: 24px 0 0 24px;
    }

    .cta-content-col {
        margin-left: auto;
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .cta-section {
        padding: 60px 0;
    }

    .cta-card {
        border-radius: 24px;
        min-height: 0;
    }



    .cta-image-wrapper {
        height: clamp(280px, 48vw, 420px);
    }

    .cta-profile-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center bottom;
        border-radius: 24px 24px 0 0;
    }

    .cta-image-col>.cta-profile-image {
        height: clamp(280px, 48vw, 420px);
    }

    .cta-content-col {
        margin-left: 0;
        order: 2;
        text-align: left;
        align-items: flex-start;
    }

    .cta-heading {
        font-size: clamp(1.8rem, 5vw, 2.35rem);
    }

    .cta-subtext {
        font-size: 0.95rem;
    }
}

@media (max-width: 767px) {
    .cta-section {
        padding: 50px 0;
    }

    .cta-card {
        border-radius: 20px;
    }

    .cta-image-col {
        min-height: 260px;
    }

    .cta-image-wrapper {
        height: 260px;
    }

    .cta-profile-image {
        height: 100%;
        border-radius: 20px 20px 0 0;
    }

    .cta-image-col>.cta-profile-image {
        height: 260px;
    }


    .cta-heading {
        font-size: 1.65rem;
        margin-bottom: 0.75rem;
    }

    .cta-heading br {
        display: none;
    }

    .cta-subtext {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .cta-form-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cta-input,
    .cta-btn-subscribe {
        width: 100%;
    }

    .cta-btn-subscribe {
        justify-content: center;
    }

    .newsletter-success-card {
        grid-template-columns: 54px minmax(0, 1fr);
        padding: 1rem;
    }

    .newsletter-success-card__icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 430px) {
    .newsletter-success-card {
        display: block;
        text-align: center;
    }

    .newsletter-success-card__icon {
        margin: 0 auto 0.9rem;
    }

    .newsletter-success-card__action {
        margin-top: 0.8rem;
    }
}
