.dg-section {
  padding: 32px 18px;
  box-sizing: border-box;
}
.dg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 24px;
}
.dg-title {
  font-size: 34px;
  margin: 0;
  line-height: 1.05;
  font-weight: 400;
}
.dg-sub {
  color: #8b8b8b;
  margin-top: 6px;
  font-size: 15px;
}

.dg-grid {
  display: grid;
  gap: 22px;
}
.dg-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 8px 20px rgba(12, 12, 12, 0.06);
}
.dg-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.6) 60%,
    rgba(0, 0, 0, 0.85) 100%
  );
  pointer-events: none;
}
.dg-card-link {
  display: inline-block;
  width: 100%;
}
.dg-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 22px;
  box-sizing: border-box;
}
.dg-location {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dg-title-term {
  font-size: 26px;
  line-height: 1.12;
  margin: 0;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.dg-more {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.total-tours {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  z-index: 4;
}

@media (max-width: 1200px) {
  .dg-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .dg-card {
    height: 300px;
  }
}
@media (max-width: 900px) {
  .dg-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dg-card {
    height: 280px;
  }
  .dg-title {
    font-size: 26px;
  }
  .dg-title-term {
    font-size: 22px;
  }
}
@media (max-width: 600px) {
  .dg-grid {
    grid-template-columns: repeat(1, 1fr)!important;
  }
  .dg-card {
    height: 220px;
    border-radius: 10px;
  }
  .dg-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .dg-sub {
    text-align: justify;
  }
}
