@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;600&display=swap');

/* Main Container */
.elementor-blog-list-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px;
    gap: 80px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

/* ==================
   Featured Card
   ================== */
.blog-list-featured-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px;
    gap: 10px;
    isolation: isolate;
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 400px;
    min-height: 150px;
    max-height: 400px;
    border-radius: 24px;
    overflow: hidden;
}

.featured-link-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 0;
}

.featured-image-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #F7F7F7;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.featured-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.8) 100%);
    background-blend-mode: normal;
    z-index: 1;
}

.blog-list-featured-card:hover .featured-image-bg {
    transform: scale(1.03);
}

.featured-card-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0px;
    gap: 16px;
    position: absolute;
    left: 48px;
    right: 48px;
    bottom: 38px;
    z-index: 2;
    pointer-events: none;
}

/* Featured Text Area */
.featured-text-area {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0px;
    gap: 20px;
    width: 550px;
    max-width: 100%;
    height: 100%;
    pointer-events: auto;
}

.featured-title {
    margin: 0;
    width: 100%;
}

.featured-title a:hover {
    color: #ffffff;
}

.featured-title a {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 36px;
    line-height: 44px;
    color: #FFFFFF;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.featured-title a:hover {
    opacity: 0.8;
}

.featured-date {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
}

/* Featured Author Profile */
.featured-author-profile {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 12px;
    height: 40px;
    pointer-events: auto;
}

.author-avatar {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #FFFFFF;
    border-radius: 100px;
    padding: 0;
    box-sizing: border-box;
}

.author-avatar svg {
    width: 19px;
    height: 19px;
}

.author-avatar svg circle {
    display: none;
}

.author-avatar svg path {
    fill: #204546;
}

.author-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0px;
    height: 40px;
}

.author-label {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.author-name {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
}


/* ==================
   Grid Layout 
   ================== */
.blog-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 24px; /* row-gap 48px, column-gap 24px */
    width: 100%;
}

.blog-list-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 20px;
    width: 100%;
}

/* Grid Article Image */
.article-image {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 10px;
    width: 100%;
    height: 300px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.article-image a {
    width: 100%;
    height: 100%;
    position: relative;
    display: block;
}

.article-image-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #EAEAEA;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.article-image-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: transparent;
    z-index: 1;
    transition: background 0.3s ease;
}

.blog-list-card:hover .article-image-overlay {
    background: rgba(0, 0, 0, 0.05);
}

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

/* Detail Section */
.detail-article {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px 15px;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.article-title {
    margin: 0;
    width: 100%;
    min-height: 56px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.article-title a {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    color: #2D3440;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: #204546;
}

/* Meta Data Section */
.start-element {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    width: 100%;
    height: 28px;
}

.author-profile {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 8px;
    height: 28px;
}

.small-avatar {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    background: #204546;
    border-radius: 50%;
    padding: 0;
    box-sizing: border-box;
}

.small-avatar svg {
    width: 14px;
    height: 14px;
}

/* Hide the inner dark green circle so only the white G path is visible */
.small-avatar svg circle {
    display: none;
}

.small-author-name {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #2D3440;
}

.article-date {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
    line-height: 20px;
    color: #64748B;
    text-align: right;
}

.blog-list-no-posts {
    width: 100%;
    text-align: center;
    padding: 60px 0;
    font-family: 'Inter', sans-serif;
    color: #64748B;
    font-size: 18px;
}

/* relative blog */

.sbp-related-grid .sbp-related-card{
    
}

/* ==================
   Responsive Design
   ================== */
@media (max-width: 1024px) {
    .elementor-blog-list-container {
        gap: 64px;
    }

    .blog-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-card-content {
        left: 24px;
        right: 24px;
        bottom: 24px;
        width: auto;
        transform: none;
    }
    
    .featured-title a {
        font-size: 30px;
        line-height: 38px;
    }
}

@media (max-width: 768px) {
    .elementor-blog-list-container {
        gap: 48px;
    }

    .blog-list-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-list-featured-card {
        height: auto;
        min-height: 360px;
    }

    .featured-card-content {
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
        left: 24px;
        right: 24px;
        bottom: 24px;
        width: auto;
        height: auto;
        transform: none;
    }
    
    .featured-text-area {
        margin-bottom: 16px;
        width: 100%;
    }
    
    .featured-title a {
        font-size: 26px;
        line-height: 34px;
    }
    
    .article-image {
        height: 280px; /* slightly shorter on mobile */
    }
}
