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

html, body {
  width: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  font-family: 'Outfit', sans-serif;
  color: #333;
  line-height: 1.6;
  background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/6/6e/China_topographic_map-blank.svg/2880px-China_topographic_map-blank.svg.png') center/cover no-repeat fixed;
}

/* Header */
header {
  background: rgba(186, 35, 35, 0.9);
  color: white;
  padding: 3rem 2rem 1.5rem;
  text-align: center;
  position: relative;
  animation: fadeIn 1.2s ease-in;
}

header h1 {
  font-size: 3rem;
  letter-spacing: 1px;
  max-width: 800px;
  margin: 0 auto 0.5rem;
}

header img.profile {
  top: 20px;
  left: 20px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid white;
  object-fit: cover;
  object-position: 200%;
}

/* Navigation */
nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  background-color: #fff;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

nav a {
  text-decoration: none;
  color: #b24592;
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover {
  color: #f15f79;
}

/* Main Content */
main {
  padding: 2rem;
  max-width: 960px;
  margin: auto;
  animation: slideUp 1.2s ease-out;
}

.intro {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  margin-bottom: 2rem;
}

/* Trip Gallery */
.trip-gallery {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.trip-item {
  display: flex;
  align-items: center;
}

.trip-item:nth-child(even) {
  flex-direction: row-reverse;
}

.trip-card-caption {
  width: 40%;
  font-size: 1rem;
  color: #444;
  padding-left: 2rem;
  padding-right: 2rem;
}

.trip-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ccc;
  border-radius: 16px;
  padding: 1rem;
  width: 55%;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  text-decoration: none;
  color: rgb(137, 75, 0);
}

.trip-card:hover {
  transform: scale(1.03);
}

.trip-card img {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.trip-card.disabled {
  pointer-events: none;
  opacity: 0.6;
  transform: none !important;
}

.trip-card.disabled:hover {
  transform: none !important;
}

/* Social Gallery */
.social-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  justify-items: center;
  width: 100%;
}

.social-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ccc;
  border-radius: 16px;
  padding: 1rem;
  width: 100%;
  max-width: 200px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  text-decoration: none;
  color: rgb(137, 75, 0);
}

.social-card:hover {
  transform: scale(1.03);
}

.social-card img {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  object-fit: contain;
  margin-bottom: 1rem;
}

/* Footer */
footer.footer,
.foot {
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  clear: both;
  display: block;
}

footer.footer {
  padding: 2rem;
  background-color: #fafafa;
  color: #777;
}

.foot {
  color: rgba(192, 192, 192, 0.788);
  text-decoration: none;
}

.mail {
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  color: rgb(137, 75, 0);
  clear: both;
  display: block;
  text-decoration: none;
}

.mail:hover {
  transform: scale(1.03);
}

/* Countdown */
.countdown-section {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 1rem;
  border-radius: 16px;
  margin-bottom: 1rem;
  animation: fadeIn 1.5s ease-in;
}

#countdown {
  font-size: 2rem;
  font-weight: 600;
  color: rgb(137, 75, 0);
  margin-top: 1rem;
}

#countdown span {
  margin: 0 0.3rem;
}

.countdownimg {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  align-items: center;
  object-fit: cover;
  border-radius: 30px;
  padding: 1rem;
  width: 200px;
  text-align: center;
}

/* Email Signup */
.email-signup-section {
  display: flex;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  max-width: 600px;
  margin: 1rem auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.email-signup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  text-align: center;
  font-family: 'Outfit', sans-serif;
}

.email-signup-form h2 {
  font-size: 1.8rem;
  color: rgb(137, 75, 0);
}

.email-signup-form input[type="email"] {
  padding: 0.8rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  outline: none;
  width: 100%;
}

.email-signup-form button {
  background-color: rgb(137, 75, 0);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.email-signup-form button:hover {
  background-color: rgb(212, 117, 0);
}

.message {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Map */
.map-container {
  text-align: center;
  padding: 1rem;
  border-radius: 10px;
}

#china-map {
  height: 500px;
  width: 100%;
  max-width: 960px;
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Video */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 2rem auto;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}

/* Utility */
.intextlink {
  color: #b24592;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.intextlink:hover {
  color: #f15f79;
}

.undertext {
  color: rgb(212, 117, 0);
}

.city {
  width: 30%;
  height: 30%;
  object-fit: contain;
  object-position: 200%;
  border-radius: 10px;
}

.gap-below {
  margin-bottom: 20px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .trip-item {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
  }

  .trip-card,
  .trip-card-caption {
    width: 100%;
  }

  .trip-card-caption {
    margin-top: 1rem;
  }

  .social-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .city {
    flex-direction: column;
  }

  .city:not(:first-child) {
    display: none;
  }
}

/* 👇 Fix for small phone screen icon overflow */
@media (max-width: 480px) {
  .social-gallery {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
  }

  .social-card {
    max-width: 100%;
  }

  .social-card img {
    height: 140px;
  }
}

.hi {
  margin-bottom: 0.5rem;
}

.guide-grid-wrapper {
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  animation: fadeIn 1.5s ease-in;
}

.guide-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  justify-items: center;
  margin-top: 2rem;
}

.guide-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ccc;
  border-radius: 16px;
  text-align: center;
  text-decoration: none;
  color: rgb(137, 75, 0);
  padding: 1rem;
  width: 100%;
  max-width: 250px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.guide-card:hover {
  transform: scale(1.03);
}

.guide-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.guide-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.guide-card p {
  font-size: 0.95rem;
  color: #555;
}

.section-heading {
  text-align: center;
  font-size: 2rem;
  color: rgb(137, 75, 0);
}

.how-to {
  text-align: center;
}

.guide-grid-wrapper1 {
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  animation: fadeIn 1.5s ease-in;
}

.guide-gallery1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.guide-card1 {
  display: flex;
  flex-direction: row; /* Always horizontal */
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ccc;
  border-radius: 16px;
  padding: 1rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-decoration: none;
  color: rgb(137, 75, 0);
  gap: 1.5rem;
}

.guide-card1:hover {
  transform: scale(1.02);
}

.guide-card1-content {
  flex: 1;
  padding-right: 1rem;
}

.guide-card1-content h3 {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.guide-card1-content p {
  font-size: 0.95rem;
  color: #555;
}

.guide-card1 img {
  width: 30%; /* or 25%, depending on how small you want it */
  min-width: 100px; /* ✅ prevent becoming too tiny */
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 1;
}


@media (max-width: 768px) {
  .trip-item {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
  }

  .trip-item:nth-child(even) {
    flex-direction: column !important;
  }

  .trip-card-caption {
    order: -1;
    width: 100%;
    margin-bottom: 1rem;
  }

  .trip-card {
    width: 100%;
  }

  .social-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .city {
    flex-direction: column;
  }

  .city:not(:first-child) {
    display: none;
  }
}

.trip-card-caption {
  margin-bottom: 1rem;
}

.caption-title {
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0;
  color: #222;
}

.caption-description {
  font-size: 0.95rem;
  color: #444;
  margin-top: 0.4rem;
}

/* Hide description on smaller screens */
@media (max-width: 768px) {
  .caption-description {
    display: none;
  }

  .trip-item {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
  }

  .trip-item:nth-child(even) {
    flex-direction: column !important;
  }

  .trip-card {
    width: 100%;
  }
}

