/* ==================== BLOG PAGE STYLES ==================== */

/* Blog Hero Section */
.blog-hero {
    position: relative;
    min-height: 60vh;
    padding-top: calc(var(--header-height) + 100px);
    padding-bottom: 100px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Blog Hero Background Image */
.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background-image: url('../images/BLOG-SECTION.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; */
    opacity: 0;
    z-index: -1;
    pointer-events: none;
}


.blog-hero-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(201, 169, 99, 0.5);
    position: relative;
}

.blog-hero-label::before,
.blog-hero-label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    box-shadow: 0 0 10px rgba(201, 169, 99, 0.5);
}

.blog-hero-label::before {
    right: calc(100% + 20px);
}

.blog-hero-label::after {
    left: calc(100% + 20px);
}

.blog-hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: var(--color-text);
    margin: 0 auto;
    max-width: 900px;
    position: relative;
    padding: 30px 0;
}

.blog-hero-title::before,
.blog-hero-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    box-shadow: 0 0 15px rgba(201, 169, 99, 0.6);
}

.blog-hero-title::before {
    top: 0;
}

.blog-hero-title::after {
    bottom: 0;
}

/* Blog Grid Section */
.blog-grid-section {
    padding: 80px 0 120px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Blog Grid Background Image */
.blog-grid-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background-image: url('../images/BLOG-SECTION.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; */
    opacity: 0;
    z-index: -1;
    pointer-events: none;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Blog Card */
.blog-card {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 169, 99, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                0 0 30px rgba(201, 169, 99, 0.15);
}

.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: rgba(0, 0, 0, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

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

/* Keep gradient style for cards that still use it */
.blog-card-image {
    position: relative;
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg,
        rgba(0, 60, 40, 0.9) 0%,
        rgba(0, 30, 20, 0.95) 50%,
        rgba(0, 10, 5, 1) 100%);
    overflow: hidden;
}

.blog-card-gradient {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0, 255, 150, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 200, 100, 0.06) 0%, transparent 50%),
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            rgba(0, 255, 150, 0.03) 1px,
            transparent 2px,
            transparent 4px
        );
}

.blog-card-image-text {
    font-size: 32px;
    font-weight: 600;
    color: rgba(0, 255, 150, 0.85);
    text-align: center;
    line-height: 1.3;
    text-shadow: 0 0 20px rgba(0, 255, 150, 0.5);
}

.blog-card-content {
    padding: 24px;
    background: rgba(5, 5, 5, 0.8);
}

.blog-card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
    margin-bottom: 20px;
    min-height: 50px;
}

.blog-card-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-btn:hover {
    border-color: var(--color-accent);
    background: rgba(201, 169, 99, 0.1);
    color: var(--color-accent);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 968px) {
    .blog-hero {
        padding-top: calc(var(--header-height) + 60px);
        padding-bottom: 60px;
        min-height: 50vh;
    }

    .blog-hero-title {
        font-size: 36px;
    }

    .blog-grid-section {
        padding: 60px 0 80px;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .blog-hero-title {
        font-size: 28px;
    }

    .blog-card-image {
        height: 240px;
    }

    .blog-card-image-text {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding-top: calc(var(--header-height) + 40px);
        padding-bottom: 40px;
    }

    .blog-hero-title {
        font-size: 24px;
    }

    .blog-card-image {
        height: 200px;
    }

    .blog-card-image-text {
        font-size: 22px;
    }

    .blog-card-content {
        padding: 20px;
    }
}

/* ==================== SCROLL REVEAL ANIMATIONS ==================== */

/* Base state for all animated elements */
.scroll-animate {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Revealed state */
.scroll-animate.revealed {
    opacity: 1;
}

/* Fade Up Animation */
.animate-fade-up {
    transform: translateY(60px);
}

.animate-fade-up.revealed {
    transform: translateY(0);
}

/* Fade Left Animation */
.animate-fade-left {
    transform: translateX(-60px);
}

.animate-fade-left.revealed {
    transform: translateX(0);
}

/* Scale Animation */
.animate-scale {
    transform: scale(0.85);
}

.animate-scale.revealed {
    transform: scale(1);
}

/* Stagger Animation for Child Elements */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .scroll-animate,
    .stagger-item {
        transition: none !important;
        animation: none !important;
    }

    .scroll-animate {
        opacity: 1 !important;
        transform: none !important;
    }
}
