* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(180deg, #fefcf9 0%, #ffffffff 100%);
  color: #333;
  line-height: 1.8;
}

/* CONTAINER */
.jd-container {
  max-width: 1200px;
  margin: auto;
  padding: 30px 20px;
}

/* HERO */
.jd-hero {
  background: linear-gradient(135deg, #d2dcffff, #9faafcff);
  padding: 60px 20px;
  text-align: center;
  border-radius: 25px;
  margin-bottom: 50px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  color: #fff;
  
}

.jd-hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 700;
  text-shadow: 1px 2px 6px rgba(0,0,0,0.3);
margin-top: 60px;
}

/* SECTION TITLE */
.jd-section-title {
  font-size: 30px;
  margin: 50px 0 20px;
  padding-left: 20px;
  border-left: 8px solid #437ff7ff;
  font-weight: 700;
  color: #3a29f1ff;
}

/* TEXT BLOCK */
.jd-text p {
  margin-bottom: 24px;
  color: #555;
  font-size: 17px;
  line-height: 1.9;
}

/* LISTS */
.jd-list {
  list-style: none;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.jd-list li {
  background: #e8f2ffff;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid #959aa0ff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: 0.3s ease, transform 0.3s ease;
  font-weight: 500;
  color: #333;
}

.jd-list li:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* FOOD GRID */
.jd-food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.jd-food-card {
  background: #e8f2ffff;
  padding: 25px;
  border-radius: 22px;
  border: 1px solid #b6d6ffff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jd-food-card h3 {
  color: #437ff7ff;
  margin-bottom: 10px;
  font-size: 21px;
}

.jd-food-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* TIPS */
.jd-tip-box {
  background: #fff8f0;
  margin-top: 25px;
  padding: 25px 30px;
  border-radius: 22px;
  border-left: 8px solid #437ff7ff;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.jd-tip-box h3 {
  color: #437ff7ff;
  margin-bottom: 10px;
  font-size: 21px;
}

.jd-tip-box:hover {
  transform: translateY(-5px);
}

/* FADE SLIDER */
.jd-fade-slider {
  width: 100%;
  height: 450px;
  position: relative;
  overflow: hidden;
  border-radius: 25px;
  margin: 40px 0;
  box-shadow: inset 0 0 25px rgba(0,0,0,0.05);
}

.jd-fade-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.jd-fade-slide.active {
  opacity: 1;
  z-index: 2;
}

.jd-fade-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}

.jd-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(52, 139, 245, 0.75);
  color: #fff;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
.jd-food-card p {
  color: #555;
  font-size: 16px;
  line-height: 1.7;
}
/* Slanted / emphasis paragraph */
.jd-tip-box .jd-slanted {
  font-style: italic;           /* slant the text */
  transform: skewX(-5deg);      /* medyo naka-slant */
  background: #e8f2ffff;          /* light background to highlight */
  padding: 10px 15px;
  border-left: 4px solid #f7941d;
  border-radius: 12px;
  display: inline-block;
  margin-top: 15px;
  color: #7b97cfff;
  font-weight: 500;
  font-size: 16px;
}


@media (max-width: 768px) {
  .jd-fade-slider { height: 280px; }
  .jd-section-title { font-size: 26px; }
  .jd-hero h1 { font-size: clamp(28px, 8vw, 48px);
   margin-top:0px;
 }
}

.jd-bg {
  position: relative;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  color: #fff;

  /* Background image */
  background-image: url('reisen-img/jordan-reise-silhouettes-dreamstime-56175373-riverrail.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Overlay shadow */
.jd-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* lakihan/laitan alpha para mas dark o light */
  z-index: 1;
  border-radius: inherit;
}

/* Content sa ibabaw ng overlay */
.jd-bg > * {
  position: relative;
  z-index: 2;
}

.jd-section-title1{
  color: #fff;
}

.jd-tip-box {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.jd-tip-content-left,
.jd-tip-content-right {
  flex: 1 1 45%;
}

.jd-tip-content-left h3 {
  margin-bottom: 1rem;
}

.jd-tip-content-left p {
  margin-bottom: 1rem;
}

/* Mobile / Tablet */
@media (max-width: 768px) {
  .jd-tip-box {
    flex-direction: column;
  }

  .jd-tip-content-left,
  .jd-tip-content-right {
    flex: 1 1 100%;
  }

  .jd-tip-content-right img {
    margin-top: 1rem;
  }
}

.jd-list .jd-img {
  list-style: none;
  position: relative;
  color: white;
  padding: 50px;
  margin-bottom: 15px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  font-size: 22px;
}

/* Black overlay using ::before */
.jd-list .jd-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.13);
  z-index: 1;
}

/* Transparent background directly behind the text */
.jd-list .jd-img::after {
  content: attr(data-text); /* duplicates your text */
  position: absolute;
  inset: 0;
  padding: 50px;
  background: rgba(0, 0, 0, 0.09); /* transparent background */
  z-index: 2;
  border-radius: 10px;
  color: white;
  pointer-events: none;
  display: flex;
  align-items: center;
}

/* Hide original text (since ::after duplicates it cleanly) */
.jd-list .jd-img {
  color: transparent;
}
