/* === Hero Overlay (khusus carousel) === */
.hero-overlay {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  max-width: 40%;
  color: #fff;
}

/* === Hero Carousel === */
#heroCarousel .carousel-inner {
  height: 75vh;
  position: relative;
}

#heroCarousel .carousel-item {
  height: 100%;
  position: relative;
}

#heroCarousel .carousel-bg {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

#heroCarousel .carousel-caption-box {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
}

#heroCarousel h3,
#heroCarousel p,
#heroCarousel li {
  color: #fff;
}

/* === Footer === */
.footer h6 {
  font-weight: bold;
}

/* === Welcome Section === */
#welcome-section {
  background: linear-gradient(135deg, #fff 0%, #f3f3f3 100%);
  padding: 50px 20px;
  margin-top: 50px;
  margin-bottom: 50px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

#welcome-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
  text-align: center;
  margin-bottom: 1.5rem;
}

#welcome-section h2::after {
  content: "";
  width: 60px;
  height: 3px;
  background-color: #0d6efd;
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

#welcome-section .icon-block {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

#welcome-section .icon-block i {
  font-size: 1.5rem;
  margin-right: 1rem;
}

#welcome-section p {
  margin-bottom: 0;
  color: #333;
}

#welcome-section .welcome-image {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.welcome-split {
  display: flex;
}

.welcome-image-wrapper {
  flex: 0 0 40%;
  max-width: 40%;
}

.welcome-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.icon-block {
  flex: 1;
}

/* === Latest Section (Card + Overlay) === */
.card-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-wrapper:hover img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}


.latest-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}


.latest-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
  display: flex;
  align-items: center; /* ganti dari flex-end */
  height: auto; /* jangan 100% */
  min-height: 60px; /* jaga-jaga agar teks+icon cukup tempat */
  z-index: 1;
}

.popular-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.popular-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.popular-link {
  text-decoration: none;
  color: #5c3d2e; /* Coklat tua */
  transition: color 0.3s ease;
}

.popular-link:hover {
  color: #a0522d; /* Coklat keemasan saat hover */
  text-decoration: none;
}




.readmore-item {
  transition: background-color 0.3s ease;
}

.readmore-item:hover {
  background-color: #f9f9f9;
  padding-left: 10px;
  border-left: 3px solid #0d6efd;
}

.carousel-caption-box a,
.article-content a {
  text-decoration: none;
  transition: all 0.3s ease;
}

.carousel-caption-box a:hover,
.article-content a:hover {
  color: #a0522d;
  text-decoration: underline;
}

.post-header {
  background-image: url('https://chasinghiddenwonders.com/public/photo/background-header.png');
  background-size: cover;
  background-position: center;
  height: 400px;
  position: relative;
  color: white;
}
.post-header .overlay {
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}
.post-header .content {
  position: relative;
  z-index: 2;
  padding: 100px 30px;
}
.post-meta {
  font-size: 0.9rem;
  color: #888;
}

.post-content img,
.post-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  margin: 2rem 0;
  display: block;
}

.post-content img:first-of-type {
  margin-top: 0;
}


.post-body {
  margin-top: 0;
  padding-top: 0;
}

.post-content img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.related-posts ul {
  padding-left: 0;
  margin-top: 1rem;
}

.related-posts li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed #ccc;
  transition: padding-left 0.3s ease, color 0.3s ease;
}

.related-posts li:last-child {
  border-bottom: none;
}

.related-posts a {
  text-decoration: none;
  color: #5c3d2e;
  font-weight: 500;
  display: block;
  transition: color 0.3s ease;
}

.related-posts a:hover {
  color: #a0522d;
  padding-left: 5px;
}

.popular-sidebar-full img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.popular-sidebar-full li:hover img {
  transform: scale(1.02);
}

.popular-sidebar-full small {
  font-size: 0.95rem;
  color: #4a3a2c; /* soft brown tone */
  line-height: 1.4;
}

.popular-sidebar-full a:hover small {
  color: #a05b2b; /* brown on hover */
  text-decoration: underline;
}

.post-hero {
  position: relative;
  background: url('https://chasinghiddenwonders.com/public/photo/background-header.png') no-repeat center center/cover;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.post-hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
  z-index: 1;
}

.post-hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 800px;
  animation: fadeInUp 1s ease;
}

.post-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  margin-bottom: 0.5rem;
}

.post-meta {
  font-size: 1.1rem;
  font-style: italic;
  color: #ddd;
}

/* Animasi muncul */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}


.category-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 40px;
  padding: 20px;
  overflow-x: auto;
}

.category-row img {
  width: 130px;
  height: auto;
  flex-shrink: 0;
  transition: transform 0.3s ease, filter 0.3s ease;
  /* Tambahan: buat ruang agar efek scale tidak mendesak elemen lain */
  will-change: transform;
}

.category-row img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px #00ffff);
  z-index: 1; /* supaya hover tidak tertimpa gambar lain */
}











