
#hero-2 {
  background-size: cover;
  background-position: center;
  padding: 150px 20px;
  color: #fff;
  text-align: center;
  position: relative;
}
#hero-2::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}
#hero-2 .container {
  position: relative;
  z-index: 2;
}
#hero-2 .hero-title {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 20px;
}
#hero-2 .hero-subtitle {
  font-size: 22px;
  margin-bottom: 30px;
}
.btn.btn-light {
  padding: 14px 40px;
  font-size: 18px;
  background-color: #fff;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
}



#tag-section-3 {
  padding: 60px 15px;
  margin: 0 auto;
  max-width: 1200px;
}
#tag-section-3 .section-hero {
  background-size: cover;
  background-position: center;
  padding: 80px 15px;
  border-radius: 8px;
  color: #fff;
  text-align: center;
  margin-bottom: 40px;
}
#tag-section-3 .masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
#tag-section-3 .masonry-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
#tag-section-3 .masonry-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
#tag-section-3 .card-body {
  padding: 15px;
}



/* style.css for post-section-5 */
#post-section-5 {
    padding-top: 0; /* Hero might be full bleed at the top */
    padding-bottom: 60px;
    background-color: #ffffff;
}

/* Hero Post Area */
#post-section-5 .hero-post-wrapper {
    position: relative;
    width: 100%;
    height: 70vh; /* Adjust height as needed, viewport height percentage */
    min-height: 450px; /* Minimum height */
    max-height: 600px; /* Maximum height */
    background-color: #333; /* Fallback color */
    display: flex;
    align-items: center; /* Vertically center content within the hero */
    justify-content: center; /* Horizontally center content if text-align is center */
    overflow: hidden;
    margin-bottom: 50px; /* Space between hero and grid */
}

#post-section-5 .hero-post-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.6) contrast(0.9); /* Darken and adjust contrast for text readability */
}

#post-section-5 .hero-post-overlay-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-align: center;
    padding: 20px;
    max-width: 800px; /* Limit width of content for readability */
}

#post-section-5 .hero-post-categories {
    margin-bottom: 15px;
}

#post-section-5 .hero-post-category-link {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 5px 12px;
    margin: 0 5px 10px 5px;
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px; /* Pill-shaped badges */
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}
#post-section-5 .hero-post-category-link:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #007bff;
}

#post-section-5 .hero-post-title {
    font-size: 2.5rem; /* Large title for hero */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}
#post-section-5 .hero-post-title a {
    color: #ffffff;
    text-decoration: none;
}
#post-section-5 .hero-post-title a:hover {
    text-decoration: underline;
}


#post-section-5 .hero-post-meta {
    font-size: 0.95rem;
    color: #e0e0e0;
    margin-bottom: 20px;
}
#post-section-5 .hero-post-meta .meta-icon {
    margin-right: 6px;
}

#post-section-5 .hero-post-excerpt {
    font-size: 1.1rem;
    color: #f0f0f0;
    margin-bottom: 30px;
    line-height: 1.7;
    font-weight: 300;
}

#post-section-5 .hero-post-readmore-btn {
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px; /* Pill button */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
#post-section-5 .hero-post-readmore-btn .btn-icon {
    margin-left: 8px;
}

/* Grid Posts Area */
#post-section-5 .grid-posts-area .area-title {
    font-size: 2rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 30px;
    text-align: center;
}

#post-section-5 .grid-post-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
#post-section-5 .grid-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

#post-section-5 .grid-post-image-wrapper {
    height: 200px;
    overflow: hidden;
}
#post-section-5 .grid-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#post-section-5 .grid-post-content {
    padding: 20px;
    flex-grow: 1; /* Allows content to expand */
    display: flex;
    flex-direction: column;
}

#post-section-5 .grid-post-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 10px;
    line-height: 1.4;
    /* flex-grow: 1; -- Removed to allow meta and button to determine height better if title is short */
}
#post-section-5 .grid-post-title a {
    color: inherit;
    text-decoration: none;
}
#post-section-5 .grid-post-title a:hover {
    color: #007bff;
}

#post-section-5 .grid-post-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 15px;
}

#post-section-5 .grid-post-excerpt { /* Optional */
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1; /* Allow excerpt to push button down */
}

#post-section-5 .grid-post-readmore-btn {
    margin-top: auto; /* Pushes button to the bottom */
    align-self: flex-start;
}

#post-section-5 .grid-pagination-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}



