/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(
        to bottom,
        #141e2a   /* Slightly darker shade for depth */
      );
    padding: 8rem 2rem 4rem;
    margin-top: 60px;
    margin-bottom: -2px;
    position: relative;
    z-index: 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
    padding-top: 2rem;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    position: relative;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);  /* Subtle dark background */
    border-radius: 20px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);  /* Softer shadow */
    opacity: 0.7;  /* Slightly reduce opacity */
    transition: all 0.3s ease;
}

.hero-image:hover img {
    opacity: 1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.6;
}

/* Blog Grid */
.blog-grid {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Blog Cards */
.blog-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);  /* Subtle white border */
    border-radius: 8px;  /* Optional: adds rounded corners */
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);  /* Slightly more visible on hover */
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: contain; /* Changed from cover to contain */
    object-position: center;
    background-color: #f5f5f5; /* Light background for images with transparency */
}

.blog-content {
    padding: 1.5rem;
}

.blog-content .date {
    color: #666;
    font-size: 0.9rem;
    display: none;
}

.blog-content h2 {
    margin: 0.5rem 0;
    font-size: 1.5rem;
    color: #333;
}

.blog-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: #ffa07a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #ff7f50;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .hero-image {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .blog-card img {
        height: 200px; /* Keep consistent height */
        object-fit: contain; /* Keep contain instead of changing to contain */
        max-height: none; /* Remove max-height constraint */
    }
}

/* Tag Filter Container */
.tag-filter-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    text-align: center;
}

.tag-filter-container h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.tag-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #ffa07a;
    background: transparent;
    color: #ffa07a;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tag-btn:hover,
.tag-btn.active {
    background: #ffa07a;
    color: #2b2523;
}