/* 
 * Blog Section Styles 
 */

.blog-section {
    padding: 60px 0;
    background-color: #f8f8f8;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
}

/* Full-width gold bar */
.blog-section::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    width: 100vw; /* Full viewport width */
    height: 25%; /* 25% of the blog section height */
    background-color: #d4af37; /* Gold color */
    top: 50%; /* Vertically center */
    transform: translateY(-50%); /* Adjust for perfect centering */
    z-index: 1; /* Above background, below content */
}

/* Ensure blog content appears above the gold bar */
.blog-section .container {
    position: relative;
    z-index: 2; /* Above the gold bar */
}

/* Match heading style with other sections */
.blog-section .section-header h1 {
    font-size: 32px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0;
    color: #d4af37; /* Gold color */
}

.blog-section .section-header h2 {
    font-size: 42px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 30px;
    color: #333; /* Black color */
}

/* Blog post container */
.latest-blog-post {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(212, 175, 55, 0.2); /* Subtle gold border */
    transform: translateZ(0); /* Force hardware acceleration for smoother animations */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.latest-blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}

@media (min-width: 992px) {
    .latest-blog-post {
        flex-direction: row;
        align-items: stretch;
    }
}

/* Blog image styling */
.blog-image {
    flex: 0 0 100%;
    overflow: hidden;
}

@media (min-width: 992px) {
    .blog-image {
        flex: 0 0 45%;
    }
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.latest-blog-post:hover .blog-image img {
    transform: scale(1.05);
}

/* Blog content area */
.blog-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .blog-content {
        padding: 40px;
    }
}

/* Blog meta information */
.blog-meta {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.blog-date,
.blog-category {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #d4af37;
    position: relative;
}

.blog-category {
    padding-left: 18px;
}

.blog-category:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #d4af37;
}

/* Blog title */
.blog-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.3;
}

@media (min-width: 992px) {
    .blog-title {
        font-size: 32px;
    }
}

/* Blog excerpt */
.blog-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

/* Read more button */
.blog-content .btn {
    align-self: flex-start;
    margin-top: 15px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .blog-section {
        padding: 40px 0;
    }
    
    .blog-content {
        padding: 25px;
    }
    
    .blog-title {
        font-size: 24px;
    }
    
    .blog-meta {
        margin-bottom: 10px;
    }
} 