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

/* Force blog sections to be visible immediately (override styles.css animation) */
.blog-hero.section,
.blog.section {
    opacity: 1 !important;
    transform: none !important;
}

/* Blog Hero */
.blog-hero {
    position: relative;
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%) !important;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.blog-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.blog-hero__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.blog-hero__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.blog-hero__title .hero__title-accent {
    display: block;
    font-size: 3rem;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0.25rem;
}

.blog-hero__description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 560px;
}

/* Blog Grid */
.blog__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Blog Cards */
.blog__card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05),
        0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.blog__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(245, 158, 11, 0.2);
}

/* Card Image/Placeholder */
.blog__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    transition: all 0.5s ease;
}

/* Card-specific gradient backgrounds */
.blog__card:nth-child(1) .blog__placeholder {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: #f59e0b;
}

.blog__card:nth-child(2) .blog__placeholder {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #818cf8;
}

.blog__card:nth-child(3) .blog__placeholder {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b2d4f 100%);
    color: #34d399;
}

.blog__card:nth-child(4) .blog__placeholder {
    background: linear-gradient(135deg, #1a0f2e 0%, #2d1b69 100%);
    color: #f472b6;
}

.blog__card:hover .blog__placeholder {
    transform: scale(1.05);
}

.blog__card:hover .blog__placeholder i {
    transform: scale(1.15);
    transition: transform 0.4s ease;
}

/* Category Badge */
.blog__category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card Content */
.blog__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog__date {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.blog__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.blog__title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s;
}

.blog__title a:hover {
    color: #f59e0b;
}

.blog__excerpt {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Tags */
.blog__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.blog__tag {
    font-size: 0.72rem;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
}

.blog__card:hover .blog__tag {
    background: #fef3c7;
    color: #92400e;
}

/* Read More Link */
.blog__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #f59e0b;
    text-decoration: none;
    transition: all 0.3s;
    margin-top: auto;
}

.blog__link i {
    transition: transform 0.3s;
    font-size: 1rem;
}

.blog__link:hover {
    color: #d97706;
    gap: 0.6rem;
}

.blog__link:hover i {
    transform: translateX(4px);
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 3rem;
    margin-top: 1rem;
}

.newsletter__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.newsletter__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.newsletter__description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    max-width: 400px;
}

.newsletter__form {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.newsletter__input {
    padding: 0.85rem 1.25rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.9rem;
    width: 260px;
    outline: none;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.newsletter__input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.newsletter__input:focus {
    border-color: #f59e0b;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.newsletter__button {
    padding: 0.85rem 1.75rem;
    border-radius: 100px;
    border: none;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.newsletter__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

/* ===== RESPONSIVE ===== */

@media screen and (max-width: 992px) {
    .blog__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .blog-hero__title {
        font-size: 1.75rem;
    }

    .blog-hero__title .hero__title-accent {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    .blog-hero {
        padding: 7rem 0 3rem;
    }

    .blog__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog__card {
        flex-direction: row;
        height: auto;
    }

    .blog__image {
        width: 140px;
        min-width: 140px;
        height: auto;
        min-height: 180px;
    }

    .blog__placeholder {
        font-size: 2.5rem;
    }

    .blog__category {
        top: 0.5rem;
        left: 0.5rem;
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }

    .blog__content {
        padding: 1.25rem;
    }

    .blog__title {
        font-size: 1.05rem;
    }

    .blog__excerpt {
        font-size: 0.82rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .newsletter {
        padding: 2rem 1.5rem;
    }

    .newsletter__container {
        flex-direction: column;
        text-align: center;
    }

    .newsletter__description {
        max-width: none;
    }

    .newsletter__form {
        flex-direction: column;
        width: 100%;
    }

    .newsletter__input {
        width: 100%;
    }

    .blog-hero__title .hero__title-accent {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .blog__card {
        flex-direction: column;
    }

    .blog__image {
        width: 100%;
        height: 160px;
        min-height: auto;
    }

    .blog__placeholder {
        font-size: 3rem;
    }

    .blog-hero__title {
        font-size: 1.5rem;
    }

    .blog-hero__title .hero__title-accent {
        font-size: 1.75rem;
    }
}