/* General Page Styles for Blog */
body {
    font-family: 'Poppins', sans-serif;
    color: #343a40; /* Darker text for readability */
    background-color: #f8f9fa; /* Light gray background for the page */
    padding-top: 80px; /* Adjust for fixed navbar */
}

.blog-page main {
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #6f42c1, #dc3545); /* Purple to Red gradient */
    color: white;
    padding: 90px 0; /* Slightly less padding than other heroes */
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.07'%3E%3Cpath d='M0 0h40v40H0zM40 40h40v40H40z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: subtleSquares 40s linear infinite;
}

@keyframes subtleSquares {
    0% { transform: translate(0,0); }
    100% { transform: translate(80px, 80px); }
}

.hero-section h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 3.2rem;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.25);
    animation: fadeInDown 1s ease-out;
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 0; /* No CTA button in this hero */
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: backwards;
}

/* Section Styles */
section {
    padding: 50px 0; /* Consistent padding for content sections */
}

section h2.text-center::after { /* For centered section titles */
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background-color: #dc3545; /* Blog theme accent */
    margin: 10px auto 30px auto;
}


/* Featured Post Section */
.section-featured-post {
    background-color: #ffffff; /* White background for the article */
}

.featured-post-article.card {
    border: none; /* Remove default card border */
    border-radius: 10px;
}

.featured-post-article .card-header {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 1.5rem;
}

.featured-post-article .project-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
}

.featured-post-article .card-body {
    padding: 2rem;
}

.featured-post-article .post-date {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: #6c757d;
}

.featured-post-article h3, .featured-post-article h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}
.featured-post-article h3 { font-size: 1.5rem; }
.featured-post-article h4 { font-size: 1.3rem; }


.featured-post-article .summary-text,
.featured-post-article .abstract-text,
.featured-post-article .whats-next-list,
.featured-post-article .whats-next-list + p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 1.25rem;
}

.featured-post-article .key-features-list .list-group-item {
    border: none;
    padding: 0.5rem 0;
    font-size: 1rem;
    color: #343a40;
}
.featured-post-article .key-features-list .list-group-item i {
    margin-right: 0.75rem;
}

.featured-post-article .whats-next-list {
    list-style-type: disc;
    padding-left: 20px;
}
.featured-post-article .whats-next-list li {
    margin-bottom: 0.5rem;
}

/* Future Update Structure Section */
.section-future-updates {
    background-color: #e9ecef; /* Slightly different light background */
}
.section-future-updates h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #343a40;
}
.section-future-updates .future-update-list .list-group-item {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    padding: 0.8rem 1.25rem;
    font-size: 1rem;
}
.section-future-updates .future-update-list .list-group-item strong {
    color: #0d6efd; /* Highlight the label */
}

/* Optional CTA Section */
.section-cta-blog {
    background: #343a40; /* Dark background */
    color: white;
    padding: 70px 0;
}
.section-cta-blog h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
}
.section-cta-blog h2::after {
    background-color: #ffc107; /* Yellow accent */
    margin-bottom: 25px;
}
.section-cta-blog .cta-button {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.section-cta-blog .cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(40,167,69,0.25);
}
.section-cta-blog a {
    color: #ffc107; /* Yellow links */
    text-decoration: none;
}
.section-cta-blog a:hover {
    text-decoration: underline;
}

/* Animation Classes (reusable) */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframe animations for hero elements (reusable) */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.7rem;
    }
    .hero-section .lead {
        font-size: 1.15rem;
    }
    .featured-post-article .project-title {
        font-size: 1.6rem;
    }
    .featured-post-article h3 { font-size: 1.3rem; }
    .featured-post-article h4 { font-size: 1.15rem; }
}

@media (max-width: 767.98px) {
    body {
        padding-top: 70px;
    }
    .hero-section {
        padding: 70px 0;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section .lead {
        font-size: 1.05rem;
    }
    section {
        padding: 35px 0;
    }
    .featured-post-article .card-body {
        padding: 1.5rem;
    }
    .featured-post-article .project-title {
        font-size: 1.4rem;
    }
    .section-cta-blog h2 {
        font-size: 2rem;
    }
}