/**
 * Yiontech Blog Widget Styles
 */

/* Blog Wrapper */
.yiontech-blog-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

/* Base Styles */
.yiontech-blog {
    width: 100%;
    height: 100%;
}

/* Style 1 - Clean blog card with meta info above the title */
.article-card {
    background-color: #ffffff;
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); 
    width: 100%;
    overflow: hidden; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.article-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.article-content {
    padding: 25px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #555;
}

.category {
    color: #ff5757;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.category-icon {
    font-size: 0.7em; 
    margin-right: 5px;
    line-height: 1;
}

.date {
    color: #9e9e9e;
    display: flex;
    align-items: center;
}

.date-icon {
     margin-right: 5px;
     font-size: 1em;
     line-height: 1;
}

.article-title {
    font-size: 1.5em;
    color: #1a432b; 
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 700;
}

.article-excerpt {
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.explore-link {
    color: #1a432b;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
    margin-top: auto;
}

.explore-link:hover {
    color: #0d2818;
}

.arrow-icon {
    margin-left: 8px;
    font-size: 1.2em;
    line-height: 1;
}

/* Style 2 - Modern blog card with date badge overlapping the image */
.article-card-2 {
    background-color: #ffffff;
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); 
    width: 100%;
    overflow: hidden; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card-2:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.image-container-2 {
    position: relative;
    line-height: 0;
}

.article-image-2 {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.date-badge-2 {
    position: absolute;
    bottom: -15px; /* Positions the badge half-way out of the image area */
    left: 25px;
    background-color: #ffc107; /* Bright yellow/orange color */
    color: #000;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.article-content-2 {
    padding: 35px 30px 30px; /* Top padding is higher to account for the date badge */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-meta-2 {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #4b4b4b;
    font-weight: 500;
}

.author-2, .category-2 {
    display: flex;
    align-items: center;
}

.meta-icon-2 {
    margin-right: 5px;
    font-size: 1.1em;
    line-height: 1;
}

.article-title-2 {
    font-size: 1.6em;
    color: #21034f; /* Dark purple/indigo */
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 800; /* Very bold text */
}

.read-more-link-2 {
    color: #21034f;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    font-size: 0.95em;
    transition: color 0.3s ease;
    margin-top: auto;
}

.read-more-link-2:hover {
    color: #0f1020;
}

.arrow-icon-2 {
    margin-left: 5px;
    font-size: 1.4em;
    line-height: 1; 
}

/* Minimal Style */
.blog-minimal .article-card,
.blog-minimal .article-card-2 {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
}

.blog-minimal .article-content,
.blog-minimal .article-content-2 {
    padding: 0;
}

.blog-minimal .article-title,
.blog-minimal .article-title-2 {
    margin-bottom: 15px;
}

.blog-minimal .article-excerpt {
    margin-bottom: 15px;
}

/* Card Style */
.blog-card .article-card,
.blog-card .article-card-2 {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-card .article-card:hover,
.blog-card .article-card-2:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.blog-card .article-content,
.blog-card .article-content-2 {
    padding: 30px;
}

/* Modern Style */
.blog-modern .card {
    width: 100%;
    margin: 0;
    padding: 15px; 
    background-color: #ffffff; 
    border-radius: 12px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); 
    font-family: Arial, sans-serif; 
    box-sizing: border-box; 
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-modern .card-image {
    overflow: hidden;
    border-radius: 8px; 
    margin-bottom: 15px; 
}

.blog-modern .card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.blog-modern .card-content {
    padding: 0; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-modern .card-meta {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #666; 
}

.blog-modern .meta-item {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.blog-modern .meta-category {
    color: #ff4500; 
    font-weight: bold;
}

.blog-modern .card-title {
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1.3;
    color: #006400; 
    margin-bottom: 20px;
}

.blog-modern .card-excerpt {
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-modern .card-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
    color: #006400; 
    font-size: 1em;
    padding-top: 5px; 
    margin-top: auto;
}

.blog-modern .card-link span {
    margin-right: 5px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .yiontech-blog-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .yiontech-blog-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .yiontech-blog {
        width: 100%;
    }
    
    .article-card,
    .article-card-2,
    .blog-modern .card {
        width: 100%;
    }
    
    .article-image,
    .article-image-2,
    .blog-modern .card-image img {
        height: 200px;
    }
    
    .article-content,
    .article-content-2 {
        padding: 20px;
    }
    
    .article-content-2 {
        padding-top: 30px;
    }
    
    .article-title,
    .article-title-2,
    .blog-modern .card-title {
        font-size: 1.3em;
    }
    
    .article-excerpt,
    .blog-modern .card-excerpt {
        font-size: 0.95em;
    }
    
    .date-badge-2 {
        left: 20px;
        font-size: 0.8em;
        padding: 6px 12px;
    }
}