/* Blog V2 - Soft Card Styling inspired by Services Cards */

/* Blog Cards Masonry Layout */
.blog-feature-grid {
    column-count: 3;
    column-gap: 2rem;
    margin: 3rem 0 2rem 0;
    width: 100%;
    max-width: 100%;
}

/* Blog Feature Card - Soft Glass-morphism Style */
.blog-feature-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0 0 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: inline-block;
    width: 100%;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    font-family: 'effra', Arial, sans-serif;
    break-inside: avoid;
    margin-bottom: 2rem;
}

.blog-feature-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(-6px);
}

/* Blog Card Image - Edge to Edge */
.blog-card-image-wrapper {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.95);
    transition: all 0.3s ease;
}

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

/* Blog Card Content */
.blog-card-content {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1.5rem 0 1.5rem;
    min-height: 200px;
}

/* Blog Card Title */
.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    line-height: 1.3;
}

/* Blog Card Excerpt */
.blog-card-excerpt {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Blog Card Meta (Author & Date) - Author left, Date right */
.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
}

.blog-card-author-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-author-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.blog-card-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    flex-shrink: 0;
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
    .blog-feature-grid {
        column-count: 2;
        column-gap: 1.5rem;
    }

    .blog-card-image-wrapper {
        height: 160px;
    }

    .blog-card-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 767px) {
    .blog-feature-grid {
        column-count: 1;
        column-gap: 0;
    }

    .blog-card-image-wrapper {
        height: 140px;
    }

    .blog-card-content {
        padding: 1.25rem 1.25rem 0 1.25rem;
    }

    .blog-card-title {
        font-size: 1.15rem;
    }
}

/* Blog Page Container Adjustments */
.blog-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.blog-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-align: center;
}

.blog-page-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    text-align: center;
}

/* Blog Post Header - Left Align */
.blog-header-wrapper {
    text-align: left !important;
    align-items: flex-start !important;
}

.blog-header-wrapper .page-sub-title {
    margin-left: 0 !important;
    margin-right: auto !important;
}

.blog-header-wrapper .heading-content {
    text-align: left !important;
}

/* Hanging on the Fridge Section Spacing */
.blog-logo-marquee-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Video Embed Container */
.video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Blog Post Content Images - Rounded Corners */
.paragraph.blog-para.w-richtext img,
.blog-para img,
.w-richtext img {
    border-radius: 8px;
}

/* CRITICAL FIX: Override flexbox centering from Webflow */
.paragraph.blog-para,
.paragraph.blog-para.w-richtext {
    display: block !important;
    align-items: flex-start !important;
    text-align: left !important;
}

/* Blog Post Content - Force Left Alignment and Effra Font for Headers */
.paragraph.blog-para h1,
.paragraph.blog-para h2,
.paragraph.blog-para h3,
.paragraph.blog-para h4,
.paragraph.blog-para h5,
.paragraph.blog-para h6,
.blog-para h1,
.blog-para h2,
.blog-para h3,
.blog-para h4,
.blog-para h5,
.blog-para h6,
.w-richtext h1,
.w-richtext h2,
.w-richtext h3,
.w-richtext h4,
.w-richtext h5,
.w-richtext h6,
.paragraph.blog-para .heading,
.blog-para .heading,
.w-richtext .heading,
.paragraph.blog-para .heading-3,
.blog-para .heading-3,
.w-richtext .heading-3 {
    text-align: left !important;
    font-family: Effra, sans-serif !important;
    font-weight: 300 !important;
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* H1 should match the blog title style */
.paragraph.blog-para h1,
.blog-para h1,
.w-richtext h1 {
    font-size: 2.25rem;
    margin-top: 0;
}

.paragraph.blog-para h2,
.blog-para h2,
.w-richtext h2 {
    font-size: 1.875rem;
}

.paragraph.blog-para h3,
.blog-para h3,
.w-richtext h3 {
    font-size: 1.5rem;
}

.paragraph.blog-para h4,
.blog-para h4,
.w-richtext h4 {
    font-size: 1.25rem;
}

/* Bold text should also use Effra */
.paragraph.blog-para strong,
.paragraph.blog-para b,
.blog-para strong,
.blog-para b,
.w-richtext strong,
.w-richtext b {
    font-family: Effra, sans-serif !important;
    font-weight: 700;
}

/* Ensure all paragraphs and content are left-aligned */
.paragraph.blog-para,
.paragraph.blog-para p,
.blog-para,
.blog-para p,
.w-richtext,
.w-richtext p {
    text-align: left !important;
}

/* Override any Webflow classes that might center text in blog content */
.section-blog .heading,
.section-blog .heading-3,
.section-blog .heading-wrapper,
.container-x-small .heading,
.container-x-small .heading-3,
.container-x-small .heading-wrapper,
.paragraph.blog-para *:not(img):not(iframe),
.blog-para *:not(img):not(iframe),
.w-richtext *:not(img):not(iframe) {
    text-align: left !important;
}
