
/* category-posts-5 Styles - Modern Post Grid */
#category-posts-5 {
    padding-top: 4rem;
    padding-bottom: 4rem;
    /* background-color is set via data.json or defaults to #f8f9fa */
}

#category-posts-5 .section-header {
    margin-bottom: 3rem;
    text-align: center;
}

#category-posts-5 .section-header .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 0.5rem;
}

#category-posts-5 .section-header .section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

#category-posts-5 .post-grid-item .card {
    border: none; /* Remove default Bootstrap card border */
    border-radius: 0.75rem; /* Softer corners */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.075); /* Softer shadow */
    overflow: hidden; /* Ensures image corners match card corners */
    height: 100%; /* Ensure cards in a row have same height if using d-flex */
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

#category-posts-5 .post-grid-item .card.card-hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#category-posts-5 .post-grid-item .card.card-hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12);
}

#category-posts-5 .post-grid-item .card-img-top-wrapper {
    width: 100%;
    height: 200px; /* Fixed height for consistent image sizes */
    overflow: hidden;
}

#category-posts-5 .post-grid-item .card-img-top-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#category-posts-5 .post-grid-item .card:hover .card-img-top-wrapper img {
    transform: scale(1.05);
}

#category-posts-5 .post-grid-item .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows card body to expand and push footer down */
}

#category-posts-5 .post-grid-item .post-title {
    font-size: 1.25rem; /* Slightly larger title */
    font-weight: 600;
    color: #2c3e50; /* Dark blue-gray */
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

#category-posts-5 .post-grid-item .post-title a {
    color: inherit;
    text-decoration: none;
}

#category-posts-5 .post-grid-item .post-title a:hover {
    color: #007bff; /* Standard primary color for hover */
}

#category-posts-5 .post-grid-item .post-date {
    font-size: 0.85rem;
    color: #7f8c8d; /* Muted gray */
    margin-bottom: 0.75rem;
}
#category-posts-5 .post-grid-item .post-date i {
    margin-right: 0.3rem;
}

#category-posts-5 .post-grid-item .post-excerpt {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1; /* Allows excerpt to take available space */
}

#category-posts-5 .post-grid-item .readmore-btn {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    align-self: flex-start; /* Align button to the start if card-body is flex */
}

#category-posts-5 .post-grid-item .readmore-btn i {
    margin-left: 0.3rem;
}

/* Pagination Wrapper */
#category-posts-5 .pagination-wrapper {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}




/* === Section Base === */
.post-section {
  padding: 60px 0;
  background: #fff;
}
.post-section .section-header {
  text-align: center;
  margin-bottom: 40px;
}
.post-section .section-header h2 {
  font-size: 2rem;
  font-weight: 700;
}
.post-section .section-header p {
  color: #666;
  margin-top: 8px;
}

/* === Grid & Cards === */
.post-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(1,1fr);
}
@media (min-width: 576px) {
  .post-grid { grid-template-columns: repeat(2,1fr); }
}
@media (min-width: 992px) {
  .post-grid { grid-template-columns: repeat(4,1fr); }
}
.post-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s;
}
.post-card:hover {
  transform: translateY(-5px);
}
.post-card img {
  width: 100%;
  display: block;
  height: auto;
}

/* === Overlay Icon === */
.post-card .overlay-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: rgba(255,255,255,0.9);
  opacity: 0;
  transition: opacity 0.3s;
}
.post-card:hover .overlay-icon {
  opacity: 1;
}

/* === Modal Content === */
.modal-content {
  border-radius: 0.5rem;
}
.modal-body img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}
.modal-body h5 {
  margin-bottom: 0.75rem;
}
.modal-body p {
  color: #555;
}

/* === Pagination === */
.pagination-wrapper {
  text-align: center;
  margin: 40px 0;
}




#offers-19 {
  padding: 80px 0;
  background-color: #f1f3f5;
}
#offers-19 .offer-section-title {
  text-align: center;
  font-weight: 700;
  margin-bottom: 3rem;
  font-size: 2rem;
}
#offers-19 .offer-image-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  transition: transform 0.3s ease;
}
#offers-19 .offer-image-card:hover {
  transform: scale(1.03);
}
#offers-19 .offer-card-image {
  height: 250px;
  overflow: hidden;
  position: relative;
}
#offers-19 .offer-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
#offers-19 .offer-image-card:hover .offer-card-image img {
  transform: scale(1.1);
}
#offers-19 .offer-image-card .card-body {
  padding: 1.8rem;
}
#offers-19 .offer-image-card .card-title {
  font-weight: 600;
  font-size: 1.3rem;
  color: #212529;
  margin-bottom: 0.75rem;
}
#offers-19 .offer-image-card .card-text {
  color: #495057;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
#offers-19 .offer-details-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.5rem;
  min-height: 30px;
}
#offers-19 .offer-details-inline .offer-code-part span {
  font-weight: 700;
  color: #fff;
  background-color: #6f42c1;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-left: 5px;
}
#offers-19 .offer-details-inline .offer-expiry-part {
  font-size: 0.85rem;
  color: #6c757d;
}
#offers-19 .offer-details-inline .offer-expiry-part i {
  margin-right: 5px;
}
#offers-19 .btn-img-card-cta {
  padding: 0.7rem 1.5rem;
  font-weight: 600;
}



#testimonials-3 {
  padding: 60px 15px;
  max-width: 800px;
  margin: 0 auto;
}
#testimonials-3 .slider-container {
  position: relative;
  overflow: hidden;
  height: 300px;
}
#testimonials-3 .slider-item {
  display: none;
  text-align: center;
  padding: 30px;
}
#testimonials-3 .slider-item.active {
  display: block;
}
#testimonials-3 .slider-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}
#testimonials-3 .slider-item p {
  font-size: 1.1rem;
  font-style: italic;
  color: #333;
  margin-bottom: 10px;
}
#testimonials-3 .client-info {
  font-size: 0.95rem;
  color: #777;
}


