/* Blog Hero Section */
.blog-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    margin-top: 0;
    padding-top: var(--header-height, 80px);
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1601758228041-f3b2795255f1?w=1200&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 0;
}

@media (min-width: 1440px) {
    .blog-hero {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@media (min-width: 1920px) {
    .blog-hero {
        padding-left: 6rem;
        padding-right: 6rem;
    }
}

.blog-hero-content {
    max-width: 800px;
    text-align: center;
    color: #ffffff;
    opacity: 0;
    animation: fadeInUp 1.2s ease-out 0.3s forwards;
}

@media (min-width: 1440px) {
    .blog-hero-content {
        max-width: 1000px;
    }
}

@media (min-width: 1920px) {
    .blog-hero-content {
        max-width: 1200px;
    }
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5);
}

.blog-hero p {
    font-size: 1.2rem;
    color: #ffffff;
    line-height: 1.7;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.8), 0 0 15px rgba(0,0,0,0.5);
}

/* Blog Posts Section */
.blog-posts-section {
    padding: 4rem 2rem;
    background-color: #f8f8f8;
    min-height: 60vh;
}

@media (min-width: 1440px) {
    .blog-posts-section {
        padding: 5rem 3rem;
    }
}

@media (min-width: 1920px) {
    .blog-posts-section {
        padding: 6rem 4rem;
    }
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 1440px) {
    .blog-posts-grid {
        max-width: 1600px;
        gap: 3rem;
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    }
}

@media (min-width: 1920px) {
    .blog-posts-grid {
        max-width: 1800px;
        gap: 3.5rem;
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    }
}

/* Blog Post Card */
.blog-post-card {
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
    position: relative;
}

.blog-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2F7F7A, #5FA5A0);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 2;
}

.blog-post-card.animated {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.blog-post-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-color: #2F7F7A;
}

.blog-post-card:hover::before {
    transform: scaleX(1);
}

.blog-post-image-link {
    display: block;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.blog-post-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-post-image-link {
    overflow: hidden;
    position: relative;
}

.blog-post-card:hover .blog-post-image {
    transform: scale(1.1);
}

.blog-post-image-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #2F7F7A 0%, #5FA5A0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.blog-post-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-post-category {
    background-color: #2F7F7A;
    color: #2c2c2c;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post-date {
    color: #000000;
    font-size: 0.9rem;
}

.blog-post-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.blog-post-card:hover .blog-post-title {
    color: #000000;
}

.blog-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-title a:hover {
    color: inherit;
}

.blog-post-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
    font-size: 1rem;
}

.blog-post-excerpt p {
    margin-bottom: 0.75rem;
}

.blog-post-excerpt p:last-child {
    margin-bottom: 0;
}

.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.blog-post-tag {
    background-color: #f0f0f0;
    color: #666;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.blog-post-card:hover .blog-post-tag {
    background-color: #e8e8e8;
    color: #2c2c2c;
}

.blog-post-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: auto;
}

.blog-post-link:hover {
    color: inherit;
    text-decoration: none;
}

/* Remove underlines and custom colors from all links in blog section */
.blog-post-card a,
.blog-post-content a,
.blog-post-title a,
.blog-post-link,
.blog-post-image-link {
    text-decoration: none !important;
    color: inherit !important;
}

.blog-post-card a:hover,
.blog-post-content a:hover,
.blog-post-title a:hover,
.blog-post-link:hover {
    text-decoration: none !important;
    color: inherit !important;
}

/* Empty State */
.blog-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.blog-empty-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.blog-empty-state h2 {
    font-size: 2rem;
    color: #2c2c2c;
    margin-bottom: 1rem;
}

.blog-empty-state p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-hero p {
        font-size: 1rem;
    }

    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-post-content {
        padding: 1.5rem;
    }

    .blog-post-title {
        font-size: 1.5rem;
    }

    .blog-post-image,
    .blog-post-image-placeholder {
        height: 200px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


