/* ============================================
   DIGITECH INNOVATIONS - BLOG STYLESHEET
   ============================================ */

/* Blog List Layout Styling */
.blog-list-section {
    background-color: #fafbfc;
}

.blog-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(55, 42, 90, 0.15);
    box-shadow: 0 10px 30px rgba(55, 42, 90, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(55, 42, 90, 0.35);
    border-color: rgba(55, 42, 90, 0.25);
}

/* Card Row Wrapper (for desktop list-style look) */
.blog-card-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 100%;
}

/* Image Container with Zoom Effect */
.blog-card__image-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #f1f5f9;
}

.blog-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-card:hover .blog-card__image {
    transform: scale(1.05);
}

/* Text Content Area */
.blog-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Meta Data Pill / Badges */
.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.blog-card__read-time {
    background-color: #f1f5f9;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.blog-card__date {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Title Styling */
.blog-card__title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.blog-card__title a {
    color: #1e293b;
    text-decoration: none;
    background-image: linear-gradient(rgba(156, 108, 255, 0.4), rgba(156, 108, 255, 0.4));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size 0.3s ease, color 0.2s ease;
}

.blog-card__title a:hover {
    color: var(--accent-light, #9c6cff);
    background-size: 100% 2px;
}

/* Brief Description excerpt */
.blog-card__excerpt {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read More Link styling */
.blog-card__link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-light, #9c6cff);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
    margin-top: auto;
}

.blog-card__link:hover {
    color: var(--button-hover, #9371ff);
    gap: 8px;
}

/* ============================================
   SIDEBAR - TRENDING WIDGET STYLING
   ============================================ */
.blog-sidebar-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(55, 42, 90, 0.15);
    box-shadow: 0 10px 30px rgba(55, 42, 90, 0.2);
    padding: 1.75rem;
    position: sticky;
    top: 100px;
}

.blog-sidebar__title {
    font-family: 'Poppins', sans-serif;
    color: #1e293b;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

.blog-sidebar__title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 45px;
    height: 2px;
    background-color: var(--accent-light, #9c6cff);
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.trending-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.trending-card:hover {
    transform: translateX(4px);
}

.trending-card__num {
    font-family: 'Poppins', sans-serif;
    color: var(--accent-light, #9c6cff);
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0.35;
    width: 25px;
    flex-shrink: 0;
}

.trending-card__content {
    flex-grow: 1;
}

.trending-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.trending-card:hover .trending-card__title {
    color: var(--accent-light, #9c6cff);
}

.trending-card__meta {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

/* ============================================
   RESPONSIVE DESIGN BREAKPOINTS
   ============================================ */

/* Medium and Smaller Viewports (Tablet & Landscape Mobile) */
@media (max-width: 991px) {
    .blog-sidebar-card {
        position: static;
        margin-top: 2rem;
    }
}

/* Small Viewports (Mobile Screens) */
@media (max-width: 767px) {
    .blog-card-row {
        flex-direction: column; /* Stack layout vertically */
    }

    .blog-card__image-wrapper {
        width: 100% !important;
        height: 200px !important;
    }

    .blog-card__body {
        padding: 1.25rem;
    }

    .blog-card__title {
        font-size: 1.15rem;
    }

    .blog-card__excerpt {
        font-size: 0.88rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .blog-list-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .blog-card__image-wrapper {
        height: 180px !important;
    }

    .blog-card__title {
        font-size: 1.1rem;
    }
}
