/* 
* ABU Business School - Blog Styles
*/

/* Blog Banner */
.blog-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 100px 0;
}

.blog-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.blog-banner-content {
    position: relative;
    z-index: 2;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: var(--white);
    margin-top: 1rem;
}

/* Blog Content */
.blog-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.blog-excerpt {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--gray);
    font-weight: 500;
}

/* Category Badges */
.category-badge {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-badge:hover {
    background-color: var(--primary);
    color: var(--white);
}

.category-badge.small {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

/* Tags */
.blog-tags {
    margin-top: 2rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    background-color: var(--light-gray);
    color: var(--dark);
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Post Navigation */
.post-navigation {
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
}

.post-nav-link {
    display: block;
    padding: 1rem;
    border-radius: 0.5rem;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-nav-link:hover {
    background-color: var(--light-gray);
    color: var(--primary);
}

.post-nav-link span {
    display: block;
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.post-nav-link h6 {
    margin-bottom: 0;
}

/* Author Bio */
.author-bio {
    border-left: 4px solid var(--primary);
}

.author-social a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--light-gray);
    color: var(--primary);
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.author-social a:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Blog Cards */
.blog-post-card {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
    background-color: var(--white);
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.post-thumb {
    overflow: hidden;
}

.post-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.blog-post-card:hover .post-thumb img {
    transform: scale(1.05);
}

.post-title {
    margin-bottom: 0.75rem;
}

.post-title a {
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-title a:hover {
    color: var(--primary);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
}

/* Featured Post */
.featured-post {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
    background-color: var(--white);
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-post-title {
    margin-bottom: 1rem;
}

.featured-post-title a {
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.featured-post-title a:hover {
    color: var(--primary);
}

/* Widget Styles */
.widget-title {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary);
}

.widget-title.text-white::after {
    background-color: var(--white);
}

.categories-list {
    list-style: none;
    padding-left: 0;
}

.categories-list li {
    margin-bottom: 0.5rem;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.categories-list a:hover, .categories-list a.active {
    background-color: var(--light-gray);
    color: var(--primary);
}

/* Author Listings */
.author-item a {
    display: flex;
    padding: 0.5rem;
    border-radius: 0.25rem;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s ease;
}

.author-item a:hover, .author-item a.active {
    background-color: var(--light-gray);
}

.author-item a:hover h6 {
    color: var(--primary);
}

/* Blog Pagination */
.pagination .page-link {
    color: var(--primary);
    border-color: var(--light-gray);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .featured-post-content {
        padding: 1.5rem !important;
    }
}

/* Object Fit for Browsers */
.object-cover {
    object-fit: cover;
}

/* Filter Information */
.filter-info {
    padding: 1rem;
    background-color: var(--light-gray);
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}