/* Blog Page Styles */

/* Hero Section */
.blog-hero {
    min-height: 80vh;
    display: flex;
    align-items: flex-end;
    position: relative;
    background-color: #0A0A0A !important;
}

/* Diagonal slant shape overlay */
.blog-hero-slant {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 120px;
    background-color: #0A0A0A;
    clip-path: polygon(0 100%, 100% 40%, 100% 100%);
    z-index: 5;
}

@media (min-width: 768px) {
    .blog-hero-slant {
        height: 180px;
        clip-path: polygon(0 100%, 100% 20%, 100% 100%);
    }
}

/* Subtle red accent line along the slant */
.blog-hero::after {
    content: '';
    position: absolute;
    bottom: 119px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(220, 38, 38, 0.3) 30%, rgba(220, 38, 38, 0.6) 60%, transparent 100%);
    z-index: 6;
    transform: rotate(-3deg);
    transform-origin: right center;
}

@media (min-width: 768px) {
    .blog-hero::after {
        bottom: 159px;
        transform: rotate(-2deg);
    }
}

/* Blog Post Cards */
.blog-post-card {
    transition: all 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-4px);
}

.blog-post-card article {
    background-color: #0A0A0A;
}

/* Card Featured Image */
.blog-card-image-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #111;
}

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

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-load {
    animation: none;
    /* Controlled by JavaScript */
}

.animate-on-load.animated {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Border decoration */
.cut-border-wrapper {
    position: relative;
}

/* Blog Post Grid */
@media (min-width: 768px) {
    .blog-post-card {
        height: 100%;
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .blog-post-card {
        margin-bottom: 0.5rem;
    }

    .blog-hero {
        min-height: 50vh;
    }
}

/* Force black backgrounds everywhere */
body, main, section, .blog-hero {
    background-color: #0A0A0A !important;
}
