/* css/custom-blog.css */

/* -----------------------------------
   Blog Hero Section Styling
----------------------------------- */

.blog-hero {
    background-image: url('../images/blog-hero.jpg'); /* Replace with your desired background image */
    background-size: cover;
    background-position: center;
    position: relative;
}

.blog-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 110, 253, 0.6); /* Bootstrap primary color with opacity */
}

.blog-hero .container {
    position: relative;
    z-index: 2;
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 700;
}

.blog-hero p.lead {
    font-size: 1.5rem;
}

/* -----------------------------------
   Blog Posts Section Styling
----------------------------------- */

.blog-posts .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-posts .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.blog-posts .card-img-top {
    height: 220px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.blog-posts .card-title {
    font-size: 1.25rem;
    color: #0d6efd;
}

.blog-posts .card-text {
    color: #555555;
}

.blog-posts .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.blog-posts .btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    color: #fff;
}

/* -----------------------------------
   Blog Post Page Styling
----------------------------------- */

.blog-post-content .img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.blog-post-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #0d6efd;
}

.blog-post-content .text-muted {
    color: #6c757d !important;
    margin-bottom: 1.5rem;
}

.blog-post-content .blog-content {
    font-size: 1rem;
    color: #555555;
    line-height: 1.6;
}

.blog-post-content .blog-content p {
    margin-bottom: 1rem;
}

/* -----------------------------------
   Call to Action Section Styling
----------------------------------- */

.cta-section {
    background-image: url('../images/cta-background.jpg'); /* Replace with your desired background image */
    background-size: cover;
    background-position: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 110, 253, 0.6); /* Bootstrap primary color with opacity */
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.25rem;
}

.cta-section .btn-light {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #0d6efd;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.cta-section .btn-light:hover {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    color: #0b5ed7;
}

/* -----------------------------------
   Responsive Adjustments
----------------------------------- */

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2.5rem;
    }

    .blog-hero p.lead {
        font-size: 1.25rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .blog-posts .card-img-top {
        height: 180px;
    }

    .blog-post-content .img-fluid {
        height: auto;
    }
}

@media (max-width: 576px) {
    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-hero p.lead {
        font-size: 1rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 0.9rem;
    }

    .blog-posts .card-img-top {
        height: 150px;
    }

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

    .blog-post-content .blog-content {
        font-size: 0.95rem;
    }
}
