/* Blog Pages CSS - Consistent with GSC Agency design */

/* Hero Section */
.section-blog-hero {
    padding: 0;
    margin-bottom: 0;
}

.blog-hero-wrapper {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.blog-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: center;
    color: white;
    padding: 3rem 0;
}

.blog-hero-title {
    font-size: 48px;
    font-weight: 500;
    line-height: 1.2;
    color: white;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.blog-hero-title a {
    color: white;
    text-decoration: none;
}

.blog-hero-excerpt {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
}

.hero-placeholder {
    background: rgba(224, 224, 224, 0.27);
    padding: 5rem 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

/* Breadcrumb styling */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 2rem;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

.blog-hero-overlay .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Blog Grid Section */
.section-blog-list {
    padding: 5rem 0;
    background: #ffffff;
}

.blog-card {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 0.5rem 0;
}

.blog-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Override Bootstrap badge colors for blog */
.blog-category.badge.bg-secondary {
    background-color: #6c757d !important;
    color: #fff !important;
}

.blog-card h3 {
    color: #181818;
    font-size: 22px;
    font-weight: 500;
    margin: 0.5rem 0;
    line-height: 1.3;
    font-family: 'Poppins', sans-serif;
}

.blog-date {
    color: #999999;
    font-size: 14px;
}

/* Single Blog Page */
.section-blog-header {
    padding: 0;
    margin-bottom: 0;
}

.blog-header-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.blog-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-blog-content {
    padding: 3rem 0 5rem 0;
    background: #ffffff;
}

.section-blog-content .breadcrumb {
    background: transparent;
    margin-bottom: 2rem;
}

.section-blog-content .breadcrumb-item a {
    color: #666666;
}

.section-blog-content .breadcrumb-item.active {
    color: #181818;
}

.section-blog-content h1 {
    font-size: 42px;
    font-weight: 500;
    color: #181818;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
}

.blog-meta {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
}

.blog-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
    margin-top: 2rem;
}

.blog-body p {
    margin-bottom: 1.5rem;
}

.blog-body h2 {
    font-size: 28px;
    font-weight: 500;
    color: #181818;
    margin: 2rem 0 1rem 0;
}

.blog-body h3 {
    font-size: 22px;
    font-weight: 500;
    color: #181818;
    margin: 1.5rem 0 1rem 0;
}

.blog-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.blog-body ul, .blog-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-body li {
    margin-bottom: 0.5rem;
}

/* Related Posts Section */
.section-related-posts {
    padding: 4rem 0;
    background: rgba(224, 224, 224, 0.27);
}

.section-related-posts h2 {
    font-size: 32px;
    font-weight: 500;
    color: #181818;
    margin-bottom: 3rem;
}

.related-card {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-card h4 {
    color: #181818;
    font-size: 18px;
    font-weight: 500;
    margin: 0.5rem 0;
    line-height: 1.3;
}

.related-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.related-meta .category {
    color: #666666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.related-meta .date {
    color: #999999;
    font-size: 12px;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
}

.pagination .page-link {
    color: #181818;
    border: 1px solid rgba(224, 224, 224, 0.5);
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: #181818;
    color: white;
    border-color: #181818;
}

.pagination .page-item.active .page-link {
    background: #181818;
    color: white;
    border-color: #181818;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero-title {
        font-size: 32px;
    }
    
    .blog-hero-excerpt {
        font-size: 16px;
    }
    
    .section-blog-content h1 {
        font-size: 28px;
    }
    
    .blog-card h3 {
        font-size: 18px;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}