/* Featured Blog Section */
.featured-header {
    font-size: 55px;
    color: #0E3A5A;
    margin-top: 0;
    margin-bottom: 30px;
}

.featured-blog {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden; /* Ensure content stays within the bounds */
    background-color: #fff; /* Optional: White background for the parent container */
    width: 100%; /* Ensure it takes the full width of the parent container */
    height: 500px; /* Set a fixed height for the container */
}

/* Left side: Image container */
.featured-image {
    width: 40vw; /* Ensure it takes the full width of the grid cell */
    height: 40vh; /* Ensure it takes the full height of the grid cell */
    background-size: cover;
    background-position: center;
    border-radius: 28px;
    margin-top: 60px;
}

/* Right side: Text container */
.featured-text {
    display: flex; /* Use flexbox for vertical alignment */
    flex-direction: column; /* Stack items vertically */
    justify-content: center; /* Center items vertically */
    align-items: flex-start;
    text-align: left;
    margin-left: 64px;
    gap: 32px;
}
  
.featured-blog .placeholder {
    background-color: #e0e0e0; /* Grey placeholder */
    width: 100%;
    height: 300px; /* Larger height for featured image */
    border-radius: 8px 8px 0 0; /* Rounded corners */
}

.featured-text h3 {
    font-size: 26px;
    font-weight: bold;
    color: #000000;
    margin: 0;
}

.featured-button {
    background-color: #137C31;
    width: 248px;
    height: 60px;
    padding: 20px 67px 20px 67px;
    border-radius: 100px;
    opacity: 0px;
    
    color: #ffffff;
    font-family: 'Segoe UI', sans-serif; /* Set font family */
    font-size: 18px; /* Set font size */
    font-weight: 600; /* Set font weight */
    text-align: center;
    text-decoration: none; /* Remove underline from link */
    text-underline-position: from-font; /* Set underline position */
    text-decoration-skip-ink: none; /* Ensure underline does not skip ink */
}

.featured-button:hover {
    background-color: #094F7F;
}

.featured-blog p {
    color: #000000;
    font-size: 20px;
    margin: 0;
}

.blog-container {
    height: 100%;
    margin-left: 14%;
    margin-right: 14%;
    padding-bottom: 20px;
}

/* Blog Grid Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Fixed 4 columns */
    gap: 45px;
}

.blog-post {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 8px;
    text-align: left;
    margin-top: 10px;
}

.blog-post .placeholder {
    background-color: #e0e0e0;
    width: 100%;
    height: 140px; /* Fixed height for all images */
    border-radius: 28px;
    background-size: cover;
    background-position: center;
    object-fit: cover; /* Ensures images maintain aspect ratio while filling the container */
}

.blog-post h3 {
    margin: 0;
    padding-top: 15px;
    font-size: 22px;
    color: #000000;
    font-weight: 600;
    text-transform: capitalize;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
    text-overflow: ellipsis;
    white-space: normal;
}

.blog-post p {
    padding-top: 15px;
    height: 100%;
    font-size: 18px;
    color: #000000;
    font-weight: 400;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    word-break: break-word;
    text-overflow: ellipsis;
    white-space: normal;
}

.blog-header {
    width: 100%;
    max-width: 1320px;
    height: 396px;
    margin: 0 auto;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .blog-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .blog-title {
    text-align: left;
    font-size: 26px;
    margin: 20px 0;
    font-family: 'Rubik', sans-serif;
  }

  @media screen and (max-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

  }

  @media screen and (max-width: 991px) {

    .blog-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }

    .featured-header {
        font-size: 40px;
    }

    .featured-blog {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 10px;
        height: 615px;
    }

    .featured-text {
        margin-left: 0px;
    }

    .featured-image {
        width: 100%; /* Ensure it takes the full width of the grid cell */
        height: 300px; /* Ensure it takes the full height of the grid cell */
        margin-top: 0px;
    }
  }