
/* category-posts-2 Styles */
#category-posts-2 {
    padding-top: 4rem;
    padding-bottom: 4rem;
    background-color: #f8f9fa; /* Light background for the section */
}

#category-posts-2 .section-header {
    margin-bottom: 3rem;
    text-align: center;
}

#category-posts-2 .section-header .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #343a40; /* Darker title */
    margin-bottom: 0.5rem;
}

#category-posts-2 .section-header .section-subtitle {
    font-size: 1.1rem;
    color: #6c757d; /* Muted subtitle */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Post Styles */
#category-posts-2 .featured-post-card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#category-posts-2 .featured-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15);
}

#category-posts-2 .featured-post-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 100%; /* Ensure wrapper takes height for object-fit */
}

#category-posts-2 .featured-post-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area, might crop */
    transition: transform 0.3s ease;
}

#category-posts-2 .featured-post-card:hover .featured-post-image-wrapper img {
    transform: scale(1.05);
}

#category-posts-2 .featured-post-content {
    padding: 2rem;
}

#category-posts-2 .featured-post-content .featured-post-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

#category-posts-2 .featured-post-content .featured-post-title a {
    color: inherit;
    text-decoration: none;
}

#category-posts-2 .featured-post-content .featured-post-title a:hover {
    color: #007bff; /* Bootstrap primary color */
}

#category-posts-2 .featured-post-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

#category-posts-2 .featured-post-meta .meta-item {
    margin-right: 1rem;
}

#category-posts-2 .featured-post-meta .meta-item i {
    margin-right: 0.3rem;
}

#category-posts-2 .featured-post-excerpt {
    font-size: 1rem;
    color: #495057;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

#category-posts-2 .readmore-btn {
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

#category-posts-2 .readmore-btn i {
    margin-left: 0.3rem;
    transition: transform 0.2s ease;
}

#category-posts-2 .readmore-btn:hover i {
    transform: translateX(3px);
}

/* Secondary Post Card Styles */
#category-posts-2 .post-card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.075);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Make cards in a row same height */
}

#category-posts-2 .post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

#category-posts-2 .post-card .card-img-top-wrapper {
    width: 100%;
    height: 200px; /* Fixed height for images */
    overflow: hidden;
}

#category-posts-2 .post-card .card-img-top-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#category-posts-2 .post-card:hover .card-img-top-wrapper img {
    transform: scale(1.05);
}

#category-posts-2 .post-card .card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows card body to grow and push footer down */
}

#category-posts-2 .post-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

#category-posts-2 .post-card .card-title a {
    color: inherit;
    text-decoration: none;
}

#category-posts-2 .post-card .card-title a:hover {
    color: #007bff;
}

#category-posts-2 .post-card .card-text {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1; /* Allows text to take available space */
}

#category-posts-2 .post-card .card-footer {
    background-color: transparent;
    border-top: none;
    padding: 0 1.25rem 1.25rem; /* Adjust padding if needed */
}

#category-posts-2 .post-card .readmore-btn {
    font-size: 0.9rem;
}

/* Pagination Wrapper */
#category-posts-2 .pagination-wrapper {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    #category-posts-2 .featured-post-image-wrapper {
        height: 300px; /* Adjust height for tablet */
    }
    #category-posts-2 .featured-post-content {
        padding: 1.5rem;
    }
    #category-posts-2 .featured-post-content .featured-post-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 767.98px) {
    #category-posts-2 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    #category-posts-2 .section-header .section-title {
        font-size: 2rem;
    }
    #category-posts-2 .section-header .section-subtitle {
        font-size: 1rem;
    }
    #category-posts-2 .featured-post-card .row > div[class^="col-"] {
        width: 100%; /* Stack image and content */
    }
    #category-posts-2 .featured-post-image-wrapper {
        height: 250px; /* Adjust height for mobile */
        border-bottom-left-radius: 0; /* Remove radius if stacked */
        border-top-right-radius: 0.5rem;
    }
    #category-posts-2 .featured-post-image-wrapper img {
        border-bottom-left-radius: 0;
        border-top-right-radius: 0.5rem;
    }
     #category-posts-2 .featured-post-content {
        border-top-left-radius: 0;
        border-bottom-right-radius: 0.5rem;
        border-bottom-left-radius: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    #category-posts-2 .post-card .card-img-top-wrapper {
        height: 180px; /* Adjust image height for smaller mobile */
    }
     #category-posts-2 .post-card .card-title {
        font-size: 1.1rem;
    }
     #category-posts-2 .post-card .card-text {
        font-size: 0.9rem;
    }
}




#text-block-16 {
  padding: 80px 0;
  background-color: var(--section-bg-color, #f9f6f1);
  background-image: var(--section-bg-texture);
  background-repeat: repeat;
  color: var(--text-color, #4a4a4a);
  font-family: "Georgia", serif;
}
#text-block-16 .container {
  max-width: 800px;
}
#text-block-16 .paper-content-box {
  background-color: var(--container-bg-color, rgba(255, 255, 255, 0.6));
  padding: 40px 50px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
#text-block-16 .section-title-optional {
  text-align: center;
  font-size: 1rem;
  font-weight: normal;
  font-style: italic;
  color: var(--text-color, #4a4a4a);
  opacity: 0.8;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}
#text-block-16 .text-heading {
  text-align: center;
  font-size: 2.3rem;
  font-weight: bold;
  color: var(--text-color, #4a4a4a);
  margin-bottom: 35px;
  line-height: 1.3;
}
#text-block-16 .text-paragraph {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-color, #4a4a4a);
  opacity: 0.9;
  margin-bottom: 1.4rem;
  text-align: justify;
}
#text-block-16 .text-paragraph:last-child {
  margin-bottom: 0;
}
@media (max-width: 767.98px) {
  #text-block-16 {
    padding: 60px 0;
  }
  #text-block-16 .paper-content-box {
    padding: 30px 25px;
  }
  #text-block-16 .text-heading {
    font-size: 1.9rem;
  }
  #text-block-16 .text-paragraph {
    font-size: 1rem;
    line-height: 1.8;
  }
}


