/* Unique styles from resources/views/districts/view.blade.php */
.gallery-element {
  position: relative;
  height: 192px;
  width: 100%;
  background-color: #536878;
  display: inline-block;
  margin: 4px;
  overflow: hidden;
  /* ensures image doesn’t overflow */
}

.gallery-element img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* makes image cover the block */
  z-index: 1;
}

.gallery-element .element-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  font-weight: 700;
  color: white;
  text-align: center;
  margin: 0;
  z-index: 2;
}

/* Hover effect */
.gallery-element:hover img {
  filter: brightness(50%);
  /* darkens image */
}

.gallery-element:hover .element-title {
  color: #fffbe6;
  /* brighter text (light yellow-white) */
  text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.8);
}

.post-module {
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  /* box-shadow: 0px 4px 12px rgba(0,0,0,0.2); */
  border: 1px solid darkgrey;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  font-family: Arial, sans-serif;
}

/* Thumbnail (Image as wallpaper style) */
.thumbnail {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Top-right circular badge */
.tourist {
  position: absolute;
  top: 15px;
  right: 15px;
}

.tourist .day {
  background: #e74c3c;
  color: #fff;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  line-height: 1.3;
  display: inline-block;
  border-radius: 6px;
  /* square with slightly rounded corners */
  white-space: normal;
  /* allow wrapping */
  width: 110px;
  /* fixed square width */
  height: 60px;
  /* fixed square height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Bottom-left district label (square) */
.category {
  position: absolute;
  bottom: 0px;
  left: 0px;
  background: #e74c3c;
  color: #fff;
  padding: 8px 14px;
  font-weight: bold;
  border-radius: 4px;
  font-size: 20px;
}

/* Content below */
.post-content {
  padding: 20px;
}

.title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 8px;
}

.sub_title {
  font-size: 16px;
  color: #e74c3c;
  margin-bottom: 15px;
}

.sub_sub_title {
  font-size: 13px;
  color: #3c6fe7;
  margin-bottom: 15px;
}

.post-meta {
  font-size: 13px;
  color: #888;
}

.sidebar .widget {
  padding: 20px;
  border-radius: 10px;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.05); */
}

.sidebar .widget img {
  border-radius: 8px;
  transition: transform 0.3s;
}

.sidebar .widget img:hover {
  transform: scale(1.05);
}

.sidebar .widget a:hover {
  color: #007bff;
}

/* ---------------- Responsive Design ---------------- */

/* Tablets */
@media (max-width: 992px) {
  .thumbnail {
    height: 280px;
  }

  .title {
    font-size: 20px;
  }

  .sub_title {
    font-size: 15px;
  }

  .description {
    font-size: 14px;
  }
}

/* Mobiles */
@media (max-width: 576px) {
  .thumbnail {
    height: 220px;
  }

  .tourist .day {
    font-size: 12px;
    padding: 10px 14px;
  }

  .category {
    font-size: 12px;
    padding: 6px 10px;
  }

  .title {
    font-size: 18px;
  }

  .sub_title {
    font-size: 14px;
  }

  .description {
    font-size: 13px;
  }

  .post-meta {
    font-size: 12px;
  }
}
