/*--------------------------------------------------------------
# Blog Styles
--------------------------------------------------------------*/

.blog-page h4,
.blog-page p,
.blog-section h4,
.blog-section p {
    margin-bottom: 0 !important;
}

.blog-page #blog-grid {
    gap: 24px;

    @media (max-width: 1024px) {
        gap: 1rem;
    }
}

.blog-page .container {
    padding-top: 48px;
    padding-bottom: 48px;

    @media (max-width: 1024px) {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

/* Blog Section on Homepage */
.blog-section {
    padding-top: 40px;

    @media (max-width: 768px) {
        padding-top: 0;
    }
}

.blog-section .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.blog-section .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
}

.blog-section .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    display: flex;
}

.blog-section-title {
    color: #0B0E21;
    font-feature-settings: 'liga' off, 'clig' off;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: 44px;
    margin: 0;

    @media (max-width: 1024px) {
        color: #0B0E21;
        font-size: 24px;
        font-weight: 600;
        line-height: 32px;
    }
}

/* Blog Page Styles */
.blog-page {
    min-height: 60vh;
}

.blog-page .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.blog-page .featured-col {
    max-width: 621px;
    padding-left: 0;
}

.blog-page .featured-col > * {
    max-width: 100%;
}

.blog-page .col-md-6,
.blog-page .col-lg-4,
.blog-page .col-lg-8 {
    display: flex;
}

.blog-page .breadcrumb-nav {
    background: none;
    padding: 0;
}

.blog-page .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.blog-page .breadcrumb-item a {
    color: var(--primary-blue-text);
    text-decoration: none;
}

.blog-page .breadcrumb-item a:hover {
    text-decoration: underline;
}

.blog-page .breadcrumb-item.active {
    color: var(--neutral-1);
}

.blog-page .section-title {
    color: var(--Button-Color-Primary, #282161);
    font-feature-settings: 'liga' off, 'clig' off;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 32px;
    margin: 0;
}

/* Featured Article Card */
.blog-page .blog-card-featured {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-page .blog-card-featured:hover {
    transform: translateY(-2px);
}

.blog-page .featured-image {
    width: 621px;
    height: 395px;
    overflow: hidden;

    @media (max-width: 1024px) {
        width: 100%;
    }
}

.blog-page .featured-image img {
    height: 395px;
    width: 621px;
    object-fit: fill;
    border-radius: 8px;
    object-position: center;

    @media (max-width: 1024px) {
        width: 100%;
    }
}

.blog-page .featured-content {
    padding: 1rem 0 0 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;

    @media (max-width: 1024px) {
        padding: 0;
    }
}

.blog-page .featured-title {
    color: var(--Brand-Color-Primary, #120253);
    font-feature-settings: 'liga' off, 'clig' off;
    text-overflow: ellipsis;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: 0.25px;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
}

.blog-page .featured-excerpt {
    color: #333;
    font-feature-settings: 'liga' off, 'clig' off;
    text-overflow: ellipsis;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 19px;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
}

.blog-page .featured-meta {
    color: var(--Neutral-Grey-3, #73767F);
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "IBM Plex Sans", sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

/* Small Article Card */
.blog-page .blog-card-small {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-page .blog-card-small:hover {
    transform: translateY(-2px);
}

.blog-page .small-image {
    width: 96px;
    height: 96px;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
}

.blog-page .small-image img {
    height: 100%;
    width: 100%;
    object-fit: fill;
    object-position: center;
    border-radius: 8px;
}

.blog-page .small-content {
    width: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 1rem;
}

.blog-page .small-title {
    overflow: hidden;
    color: var(--Brand-Color-Primary, #120253);
    font-feature-settings: 'liga' off, 'clig' off;
    text-overflow: ellipsis;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 22px; /* 137.5% */
    letter-spacing: 0.25px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.blog-page .small-excerpt {
    overflow: hidden;
    color: #333;
    font-feature-settings: 'liga' off, 'clig' off;
    text-overflow: ellipsis;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 19px; /* 135.714% */
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
}

.blog-page .small-meta {
    color: var(--Neutral-Grey-3, #73767F);
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "IBM Plex Sans", sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

/* Grid Article Card */
.blog-page .blog-card-grid {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    height: 100%;
    overflow: visible;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-page .blog-card-grid:hover {
    transform: translateY(-2px);
}

.blog-page .grid-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-page .grid-image img {
    height: 200px;
    width: 100%;
    object-fit: fill;
    border-radius: 8px;
    object-position: center;
}

.blog-page .grid-content {
    padding: 12px 0 0 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-page .grid-title {
    overflow: hidden;
    color: var(--Brand-Color-Primary, #120253);
    font-feature-settings: 'liga' off, 'clig' off;
    text-overflow: ellipsis;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: 0.25px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0;
}

.blog-page .grid-excerpt {
    overflow: hidden;
    color: #333;
    font-feature-settings: 'liga' off, 'clig' off;
    text-overflow: ellipsis;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 19px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    margin: 0;
}

.blog-page .grid-meta {
    color: var(--Neutral-Grey-3, #73767F);
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "IBM Plex Sans", sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    padding-top: 8px;
}

/* Homepage Blog Card */
.blog-page .blog-card-homepage,
.blog-section .blog-card-homepage {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-page .blog-card-homepage:hover,
.blog-section .blog-card-homepage:hover {
    transform: translateY(-2px);
}

.blog-page .homepage-image,
.blog-section .homepage-image {
    width: 100%;
    height: 359px;
    overflow: hidden;
}

.blog-page .homepage-image img,
.blog-section .homepage-image img {
    border-radius: 8px;
    height: 359px;
    width: 100%;
    object-fit: fill;
    object-position: center;
}

/* Bottom row cards (3 cards) - smaller height */
.blog-page .blog-section .col-md-4 .homepage-image,
.blog-section .col-md-4 .homepage-image {
    height: 247px;
}

.blog-page .blog-section .col-md-4 .homepage-image img,
.blog-section .col-md-4 .homepage-image img {
    height: 247px;
}

.blog-page .homepage-content,
.blog-section .homepage-content {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-page .homepage-title,
.blog-section .homepage-title {
    overflow: hidden;
    color: var(--Brand-Color-Primary, #120253);
    font-feature-settings: 'liga' off, 'clig' off;
    text-overflow: ellipsis;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: 0.25px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.blog-page .homepage-excerpt,
.blog-section .homepage-excerpt {
    overflow: hidden;
    color: #333;
    font-feature-settings: 'liga' off, 'clig' off;
    text-overflow: ellipsis;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 19px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
}

.blog-page .homepage-meta,
.blog-section .homepage-meta {
    color: var(--Neutral-Grey-3, #73767F);
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "IBM Plex Sans", sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    padding-top: 8px;
}

/* Blog Section Button */
.blog-section .btn-outline-primary {
    border-radius: var(--Button-Border-Radius, 8px);
    border: 1px solid var(--brand-color-secondary-acf);
    color: var(--brand-color-secondary-acf);
    background: transparent;
    padding: 12px 16px;
    text-align: center;
    font-feature-settings: 'liga' off, 'clig' off;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 0.08px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-section .btn-outline-primary:active {
    background: transparent;
    columns: var(--brand-color-secondary-acf);
    border-color: var(--brand-color-secondary-acf);
    color: var(--brand-color-secondary-acf);
}

/* Load More Button */
.blog-page #load-more-blog {
    background-color: white;
    color: var(--brand-color-secondary-acf);
    text-align: center;
    font-feature-settings: 'liga' off, 'clig' off;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px; /* 150% */
    letter-spacing: 0.08px;
    border-radius: var(--Button-Border-Radius, 8px);
    border: 1px solid var(--brand-color-secondary-acf);
    padding: 12px 1rem;
    transition: background-color 0.3s ease;
}

.blog-page #load-more-blog:disabled {
    background: var(--neutral-2);
    border: 1px solid var(--neutral-2);
    border-radius: var(--Button-Border-Radius, 8px);
    color: white;
    cursor: not-allowed;
}

.blog-page .small-articles-section {
    width: 52%;
    display: flex;
    flex-direction: column;
    gap: 24px;

    @media (max-width: 1024px) {
        gap: 1rem;
        padding-top: 1rem;
    }
}

.blog-page .spacing-small-card {
    padding-left: 0;
    padding-bottom: 24px;

    @media (max-width: 1024px) {
        padding-bottom: 1rem;
    }
}

.blog-page .list-grid-card {
    padding: 0;
    width: 32%;

    @media (max-width: 1024px) {
        width: auto;
    }
}

.blog-page .load-more-blog {
    margin: 1rem 0 1rem  0
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-page .small-articles-section {
        width: 100%;
        padding-left: 0;
    }
    
    /* Remove per-breakpoint overrides to keep featured title consistent across cards */
    
    .blog-page .grid-title {
        font-size: 1rem;
    }
    
    .blog-page .homepage-title {
        font-size: 1rem;
    }
    
    .blog-page .homepage-image {
        height: 300px;
    }
    
    .blog-page .homepage-image img {
        height: 300px;
        object-fit: fill;
    }
    
    /* Mobile: Bottom row cards smaller height */
    .blog-page .blog-section .col-md-4 .homepage-image {
        height: 300px;
    }
    
    .blog-page .blog-section .col-md-4 .homepage-image img {
        height: 300px;
        object-fit: fill;
    }
    
    .blog-page .small-image {
        width: 120px;
        height: 80px; /* Mobile thumb */
    }
    
    .blog-page .small-image img {
        height: 80px;
        object-fit: fill;
    }
    
    .blog-page .grid-image {
        height: 150px;
    }
    
    .blog-page .grid-image img {
        height: 150px;
        object-fit: fill;
    }
    
    .blog-page .featured-image {
        height: 200px;
    }
    
    .blog-page .featured-image img {
        height: 200px;
        object-fit: fill;
    }
    
    /* Mobile layout for blog section */
    .blog-page .blog-section .col-md-6,
    .blog-page .blog-section .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}



/*single post page */
.single-post {
    article {
        .post-wrap {
            max-width: 787px;
            font-size: 14px;
            font-weight: 400;
            line-height: 24px;
            color: #20282E;

            .entry-header {
                h1 {
                    margin: 0;
                    color: #120253;
                    font-weight: 600;
                }
                time {
                    color: #848B99;
                }
            }

            .entry-content {
                margin-top: 0.5rem;
                img {
                    width: 100%;
                }
            }
        }
    }
    .breadcrumbs span {
        font-weight: 400;
    }
}