/* Blog Page Specific Styles */

/* Blog Hero Section */
.blog-hero {
    padding: 80px 0 40px;
    background: var(--bg-body);
}

.blog-hero .section-header-centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero .section-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--flash-green), var(--flash-yellow));
    color: var(--flash-black);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

body.dark-mode .blog-hero .section-badge {
    background: linear-gradient(135deg, #7ed957, #fff44d);
}

.blog-hero .hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--text-colour);
}

.blog-hero .highlight-text {
    color: var(--flash-green);
}

.blog-hero .section-subtitle {
    font-size: 1.15rem;
    color: var(--text-colour);
    opacity: 0.75;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Blog Posts Section */
.blog-posts-section {
    padding: 40px 0 60px;
}

/* Container for each blog post */
.blog-post {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
    background-color: var(--bg-body);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px var(--box-shadow);
}

/* Alternate direction for even posts */
.blog-post:nth-child(even) {
    flex-direction: row-reverse;
}

/* Thumbnail styles */
.blog-thumbnail {
    flex: 0 0 40%;
    margin-right: 20px;
}

/* Adjust margin for even posts */
.blog-post:nth-child(even) .blog-thumbnail {
    margin-left: 20px;
    margin-right: 0;
}

.blog-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    object-fit: cover;
}

/* Content container */
.blog-content {
    flex: 1;
}

.blog-content h2 {
    font-size: var(--fSize-lg);
    font-weight: var(--fWeight-bold);
    margin-bottom: 10px;
}

.blog-content .date {
    font-size: var(--fSize-label);
    color: var(--flash-green);
    margin-bottom: 15px;
}

.blog-content p {
    line-height: 1.5;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    /* pill-shaped */
    background: linear-gradient(145deg, #ffffff30, #ffffff05);
    color: var(--flash-green);
    font-weight: bold;
    text-decoration: none;
    border: 2px solid var(--flash-green);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    /* glassy effect */
}

.read-more:hover {
    background: var(--flash-green);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Responsive Design for Blog Page */
@media (max-width: 768px) {
    .blog-hero {
        padding: 60px 0 30px;
    }

    .blog-hero .hero-title {
        font-size: 2.25rem;
    }

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

    .blog-post {
        flex-direction: column !important;
        padding: 15px;
    }

    .blog-thumbnail {
        flex: 1;
        margin: 0 0 20px 0 !important;
    }

    .blog-content h2 {
        font-size: 1.5rem;
    }

    .read-more {
        width: 100%;
        text-align: center;
    }
}
