/* Redesigned Styles for All Blogs Portal - Modern Trending Layout */

/* Hero Banner Update */
.page-title-area {
    padding: 0 !important;
}

/* Custom Category Section Headers */
.category-section-header {
    border-bottom: 1px solid #eef1f6;
    padding-bottom: 15px;
    margin-top: 55px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-section-title {
    font-size: 22px;
    font-weight: 800;
    font-family: 'Barlow Semi Condensed', 'Raleway', sans-serif;
    color: #201654;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-section-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 24px;
    background-color: #fab012;
    border-radius: 4px;
}

.category-section-title span.blue-text {
    color: #006493;
}

.category-section-title span.orange-text {
    color: #fab012;
}

.view-all-link {
    font-size: 13px;
    font-weight: 700;
    color: #006493 !important;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    border: 1px solid #eef1f6;
    padding: 6px 16px;
    border-radius: 30px;
    background: #ffffff;
}

.view-all-link:hover {
    color: #ffffff !important;
    background: #006493;
    border-color: #006493;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 100, 147, 0.15);
}

/* Trending Blog Cards */
.trending-blog-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #eef2f6;
    overflow: hidden;
    margin-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: calc(100% - 30px);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    text-decoration: none !important;
}

.trending-blog-card:hover {
    transform: translateY(-6px);
    border-color: #fab012;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* Card Image Wrapper */
.trending-blog-card .card-thumb {
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.trending-blog-card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.trending-blog-card:hover .card-thumb img {
    transform: scale(1.07);
}

/* Overlapping Badge */
.trending-blog-card .card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #fab012;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(250, 176, 18, 0.25);
    z-index: 5;
    letter-spacing: 0.5px;
}

/* Card Details */
.trending-blog-card .card-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.trending-blog-card .card-title {
    font-size: 16.5px;
    font-weight: 700;
    color: #201654;
    line-height: 1.4;
    margin-bottom: 10px;
    height: 46px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
    font-family: 'Playfair Display', 'Georgia', serif;
}

.trending-blog-card:hover .card-title {
    color: #006493;
}

.trending-blog-card .card-desc {
    font-size: 13px;
    color: #666666;
    line-height: 1.55;
    margin-bottom: 0;
    height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Card Footer Meta */
.trending-blog-card .card-footer-meta {
    margin-top: auto;
    border-top: 1px solid #f1f2f6;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.trending-blog-card .author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trending-blog-card .author-img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid #eef1f6;
    object-fit: contain;
    background: #ffffff;
}

.trending-blog-card .author-name {
    font-size: 12px;
    font-weight: 600;
    color: #555555;
}

.trending-blog-card .read-more-trigger {
    font-size: 12px;
    font-weight: 700;
    color: #006493;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.trending-blog-card:hover .read-more-trigger {
    color: #fab012;
}

.trending-blog-card:hover .read-more-trigger i {
    transform: translateX(3px);
}
