/* YCH Latest Blogs Block Styling */
.ych-blogs-wrapper {
    margin: 0 auto;
    font-family: inherit;
    box-sizing: border-box;
}

/* Header Bar */
.ych-blogs-header-bar {
    padding: 44px 20px;
    box-sizing: border-box;
}
.ych-blogs-header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}
.ych-blogs-header-text {
    max-width: 700px;
}
.ych-blogs-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.ych-blogs-main-heading {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.25;
}
.ych-blogs-subheading {
    color: #94a3b8;
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}

.ych-blogs-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.ych-blogs-view-all-btn:hover {
    background: #ffffff;
    color: #0f172a !important;
    border-color: #ffffff;
}
.ych-blogs-view-all-btn svg {
    transition: transform 0.25s ease;
}
.ych-blogs-view-all-btn:hover svg {
    transform: translateX(4px);
}

/* Main Container & Grid */
.ych-blogs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.ych-blogs-grid {
    display: grid;
    gap: 28px;
}
.ych-blogs-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}
.ych-blogs-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}
.ych-blogs-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

/* Card Styling */
.ych-blog-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.ych-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.09);
    border-color: #cbd5e1;
}

/* Thumbnail Box */
.ych-blog-thumb-box {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
    background: #f1f5f9;
}
.ych-blog-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
}
.ych-blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.ych-blog-card:hover .ych-blog-img {
    transform: scale(1.07);
}

.ych-blog-img-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #94a3b8;
}

/* Category Badge */
.ych-blog-category-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

/* Content Area */
.ych-blog-content {
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.ych-blog-meta {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
.ych-blog-dot {
    color: #cbd5e1;
}

.ych-blog-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.38;
    margin: 0 0 10px 0;
}
.ych-blog-title a {
    color: #0f172a !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ych-blog-card:hover .ych-blog-title a {
    color: #2563eb !important;
}

.ych-blog-excerpt {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 18px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer Meta */
.ych-blog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}
.ych-blog-author {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ych-author-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}
.ych-author-name {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.ych-blog-read-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #2563eb !important;
    text-decoration: none !important;
}
.ych-blog-read-link svg {
    transition: transform 0.25s ease;
}
.ych-blog-card:hover .ych-blog-read-link svg {
    transform: translateX(4px);
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 1024px) {
    .ych-blogs-grid[data-columns="4"],
    .ych-blogs-grid[data-columns="3"] {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .ych-blogs-header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .ych-blogs-main-heading {
        font-size: 24px;
    }
    .ych-blogs-grid {
        grid-template-columns: 1fr !important;
    }
}
