/* 
   blog-style.css
   Specific styles for the Learmo Blog page
*/

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

/* 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);
    }
}

@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%;
    }
}

/* 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);
}

.featured-content-col,
.featured-image-col
{
    padding: 4.5rem 4rem;
}

.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;

}

.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%;
    object-fit: cover;
    display: block;
}

/* Responsive Adjustments for Featured Section */
@media (max-width: 991px) {
    .featured-content-col,
    .featured-image-col
    {
        padding: 3rem 2.5rem;
    }
    
    .featured-title {
        font-size: 1.8rem;
    }
    
    .featured-article-card-frame {
        border-radius: 24px;
    }
}

@media (max-width: 767px) {
    .featured-content-col,
    .featured-image-col
    {
        padding: 2.5rem 1.5rem;
        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-image-col {
        height: auto;
    }
}

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

.single-blog-hero .section-headline {
    font-size: clamp(2.4rem, 5.4vw, 4.5rem);
    line-height: 1.08;
}



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

.single-article-body {
    overflow-x: hidden;
}

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

.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;
}

.toc-sticky-wrapper {
    position: sticky;
    top: 120px;
    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-blog-hero .section-headline {
        font-size: clamp(2rem, 7vw, 3.2rem);
    }

   

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

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

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

    .toc-sticky-wrapper {
        position: static;
        margin-bottom: 2rem;
        padding-right: 0;
        padding: 1.1rem;
        border-radius: 18px;
        background-color: #F8FAFC;
    }

    .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 .section-headline {
        font-size: clamp(1.8rem, 9vw, 2.55rem);
        line-height: 1.12;
    }

  

    .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;
    }

    .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;
}

.filter-tab-btn {
    padding: 10px 24px;
    border-radius: 9999px;
    border: 1px solid transparent;
    background-color: #E7E7F4;
    color: #424656;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

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

.filter-tab-btn.active {
    background-color: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
}

.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;
}

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

.cta-input {
    flex: 1;
    padding: 0.9rem 1.25rem;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    outline: none;
    transition: all 0.3s ease;
    min-width: 0;
}

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

.cta-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

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

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

@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;
        padding: clamp(2rem, 5vw, 3rem);
        text-align: center;
        align-items: center;
    }
    
    .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-content-col {
        padding: 2rem 1.5rem;
    }
    
    .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;
    }
}
