/* Add a global box-sizing to ease layout calculations */
* {
    box-sizing: border-box;
}

/* Container holding the blog elements */
.blog-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Arial', sans-serif;
    width: 90%;
    margin: auto;
}

/* Hero image styling */
.hero-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

#img1 {
    width: 100%;
    height: 50vh; /* Adjust this to suit your needs */
    overflow: hidden;
    margin-bottom: 2rem;
}

#img1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Blog content styling */
.blog-content {
    width: 100%;
    background-color: #f8f9fa;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.blog-content h1 {
    color: #333;
    text-align: center;
    font-size: 2em;
    font-weight: bold;
}

.blog-content h2 {
    color: #333;
    text-align: center;
    font-size: 1.8em;
}
.blog-content p {
    color: #666;
    line-height: 1.6;
    text-align: justify;
}

/* Image section styling */
.image-section {
    width: 100%;
    height: auto;
    overflow: hidden;
    margin-bottom: 2rem;
}

.image-section img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Subtitle styling */
.subtitle {
    font-size: 1.3em;
    color: #555;
    text-align: center;
    margin-bottom: 1rem;
}

/* Conclusion styling */
.conclusion {
    background-color: #e3e3e3;
    padding: 1em;
    border-radius: 5px;
    margin-top: 2em;
    text-align: center;
}

/* Additional styles for inspirational quotes */
.quote {
    color: #008080;
    font-style: italic;
    margin: 2em 0;
}

/* Additional styles for final note */
.final-note {
    color: #333;
    font-weight: bold;
    text-align: center;
    margin-top: 2em;
}


/* Blog three continues*/
.blog-container .content-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

/* Text and image containers within each section */
.blog-container .content-section .text,
.blog-container .content-section .image {
    width: 100%;
    padding: 1rem;
}

/* Styling for the image container */
.blog-container .content-section .image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Media query to switch to row layout on wider screens */
@media (min-width: 768px) {
    .blog-container .content-section {
        flex-direction: row;
        justify-content: space-between;
    }

    .blog-container .content-section .text,
    .blog-container .content-section .image {
        width: 45%; /* Adjust width to allow for spacing */
    }
}


@media (min-width: 600px) {
    .blog-content,
    .image-section {
        width: 75%;
    }
    .blog-content h1 {
        font-size: 2.5em;
    }
    .blog-content h2 {
        font-size: 2em;
    }
    .subtitle {
        font-size: 1.5em;
    }
}



/*BUTTON*/
/* CSS for the Call to Action button */
.cta-button {
    display: inline-block;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #2c3e50; /* Change this to any color you prefer */
    border: none;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;

    /* Centering the button */
    margin: 0 auto;
    display: block;
}

/* Adding a hover effect to change background color */
.cta-button:hover {
    background-color: #34495e; /* Change this to any color you prefer */
}

/* The existing cta-section code */
.cta-section {
    text-align: center; /* Ensures text and button are centered */
    margin: 2em 0; /* Adds some space above and below the section */
}

