/* China Page Updates */

/* Fix for main content margin due to fixed header */
.main-content {
  margin-top: 80px;
  padding-top: 20px;
  background-color: #ffffff;
}

/* Override all background colors to white */
body,
.china-hero-section,
.highlights-section,
.packages-section,
.itinerary-section,
.footer {
  background-color: #ffffff !important;
}

/* Update text colors for better contrast */
.section-title,
.package-title,
.package-price,
.package-group,
.itinerary-title,
.slide-text h3,
.slide-text p,
.slide-note,
.scroll-indicator p {
  color: #000000 !important;
}

/* Update hero section */
.china-hero-content {
  align-items: flex-end !important; /* Align to the right */
  justify-content: flex-end !important; /* Align to the bottom */
  padding-right: 10% !important;
  padding-bottom: 15% !important;
}

.china-hero-quote {
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  text-align: right !important; /* Right-align text */
  margin-right: 0 !important; /* Align to the right */
  margin-left: auto !important; /* Push to the right */
  max-width: 500px !important; /* Limit width */
}

.china-hero-quote p {
  color: #000000 !important;
  text-shadow: none;
}

.china-hero-quote .tagline {
  color: #333333 !important;
}

/* New China Highlights Layout - Updated with proper spacing distribution */
.new-highlights-layout {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Minimal gap between items */
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.new-highlight-item {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Minimal gap between text and image */
  margin-bottom: 10px; /* Minimal margin between items */
}

@media (min-width: 768px) {
  .new-highlight-item {
    flex-direction: row;
    align-items: center;
    gap: 10%; /* 10% gap between text and image */
    justify-content: space-between;
  }
  
  .new-highlight-item .highlight-text {
    width: 40%; /* Text takes 40% of space */
    flex: none;
  }
  
  .new-highlight-item .highlight-image {
    width: 50%; /* Image takes 50% of space */
    flex: none;
    max-width: 50%;
  }
}

/* Make images match the reference aspect ratio */
.new-highlight-item .highlight-image img {
  height: 180px; /* Fixed height */
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16/9; /* Wider rectangular aspect ratio */
}

/* Update package cards */
.package-card {
  background-color: #f8f8f8 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.package-card::before {
  background: linear-gradient(to right, #1c4f99, #e63946) !important;
}

/* Update slideshow */
.slideshow-container {
  background-color: #f8f8f8 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.slideshow-navigation {
  background-color: #f0f0f0 !important;
}

.prev-slide,
.next-slide {
  background-color: #1c4f99 !important;
}

.indicator.active {
  background-color: #1c4f99 !important;
}

/* Update footer */
.footer {
  color: #000000 !important;
  border-top: 1px solid #e0e0e0;
}

.footer-container {
  width: 80% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.footer-link {
  color: #333333 !important;
}

.copyright {
  color: #333333 !important;
}

/* Fix any remaining dark backgrounds */
.china-hero-background {
  filter: brightness(0.9) !important;
}

/* Add padding to main content sections */
section {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Uniform container width system - 80% of page width for all sections */
.container {
  width: 80% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Ensure all section content uses the full container width */
.new-highlights-layout,
.packages-grid,
.slideshow-container,
.new-packages-layout,
.new-slideshow-container,
.overview-layout {
  width: 100% !important;
  max-width: 100% !important;
}

/* Adjust padding for better spacing with wider containers */
.container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}/* Upda
te scroll-down button to use blue header color with white arrow */
.scroll-down-button {
  background-color: #1c4f99 !important; /* Blue header color */
  box-shadow: 0 0 15px rgba(28, 79, 153, 0.3) !important;
  animation: none !important;
}

.scroll-down-button:hover,
.scroll-down-button.hover,
.scroll-down-button:focus {
  background-color: #1c4f99 !important; /* Keep blue on hover */
  box-shadow: 0 0 20px rgba(28, 79, 153, 0.5) !important;
}

.scroll-icon {
  color: #ffffff !important; /* White arrow */
  stroke: #ffffff !important;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3)) !important;
}

/* Ensure scroll-down button is visible */
.scroll-down-button {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Tour packages section header styling */
.packages-section .section-title {
  text-align: center !important;
  font-style: italic !important;
  font-size: 1.8rem !important; /* Smaller than the default 2.5rem */
  margin-bottom: 2rem !important;
  line-height: 1.4 !important;
  padding: 0 1rem !important; /* Add padding for better readability */
}/
* Package card image styling */
.package-image {
  width: 100%;
  height: auto;
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Ensure package icon container maintains proper sizing */
.package-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  margin-bottom: 1rem;
}/
* Package separator styling */
.package-separator {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem 0;
  height: 40px;
}

.separator-image {
  height: 100%;
  width: auto;
  max-width: 60px;
  object-fit: contain;
}

/* Responsive adjustments for separators */
@media (max-width: 768px) {
  .package-separator {
    margin: 0.5rem 0;
    height: 30px;
  }
  
  .separator-image {
    max-width: 40px;
  }
}

/* Ensure packages grid handles separators properly */
.packages-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

@media (min-width: 768px) {
  .packages-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .package-card {
    flex: 1;
    max-width: 300px;
  }
  
  .package-separator {
    flex: 0 0 auto;
    margin: 2rem 1rem 0 1rem;
    height: 60px;
  }
  
  .separator-image {
    max-width: 80px;
  }
}/*
 Package title button styling */
.package-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
  padding: 0.5rem;
  margin: 0.5rem 0;
}

/* Hover and focus states for package buttons */
.package-button:hover,
.package-button:focus {
  background-color: rgba(28, 79, 153, 0.1);
  color: #1c4f99;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  outline: none;
}

/* Focus visible for keyboard navigation */
.package-button:focus-visible {
  outline: 2px solid #1c4f99;
  outline-offset: 2px;
}

/* Active state */
.package-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Ensure button text maintains proper styling */
.package-button {
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

/* Remove default button styling on mobile */
.package-button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}/* Package 
price styling updates */
.package-price {
  font-weight: normal !important;
  color: #e63946 !important;
  font-size: 1rem;
  margin: 0.5rem 0;
  line-height: 1.4;
}

/* Ensure price text maintains readability and contrast */
.package-price {
  text-shadow: none;
  opacity: 1;
}/*
 SVG Package separator styling */
.package-separator {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 1rem 0 !important;
  height: 80px !important;
}

.separator-svg {
  height: 100% !important;
  width: auto !important;
  max-width: 60px !important;
}

/* Responsive adjustments for SVG separators */
@media (max-width: 768px) {
  .package-separator {
    margin: 0.5rem 0 !important;
    height: 60px !important;
  }
  
  .separator-svg {
    max-width: 45px !important;
  }
}

@media (max-width: 480px) {
  .package-separator {
    height: 50px !important;
  }
  
  .separator-svg {
    max-width: 35px !important;
  }
}/
* New Tour Packages Layout - Based on provided design */
.new-packages-layout {
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 2rem !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 2rem 0 !important;
}

.new-package-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  flex: 1 !important;
  max-width: 300px !important;
}

/* Package SVG Icon Container */
.package-icon-container {
  width: 120px !important;
  height: 120px !important;
  margin-bottom: 1.5rem !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.package-svg-icon {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* Package Info Box (Blue Rectangle) */
.package-info-box {
  background-color: #1c4f99 !important;
  color: #ffffff !important;
  padding: 1rem 1.5rem !important;
  margin-bottom: 1rem !important;
  border-radius: 4px !important;
  width: 100% !important;
  max-width: 250px !important;
}

.package-info-box:hover {
  transform: scale(1.05);
  filter: grayscale(0) brightness(1.02);
}

.package-title-text {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  color: #ffffff !important;
  text-transform: lowercase !important;
}

/* Package Price and Group Text */
.package-price-text {
  font-size: 1rem !important;
  color: #e63946 !important;
  font-weight: normal !important;
  margin: 0.5rem 0 !important;
  line-height: 1.4 !important;
}

.package-group-text {
  font-size: 0.9rem !important;
  color: #333333 !important;
  margin: 0.5rem 0 0 0 !important;
  line-height: 1.4 !important;
}

/* New Package Separator */
.new-package-separator {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  margin: 0 1rem !important;
}

.separator-line {
  height: 200px !important;
  width: auto !important;
  max-width: 40px !important;
  object-fit: contain !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .new-packages-layout {
    flex-direction: column !important;
    gap: 2rem !important;
    align-items: center !important;
  }
  
  .new-package-separator {
    transform: rotate(90deg) !important;
    margin: 1rem 0 !important;
  }
  
  .separator-line {
    height: 40px !important;
    width: 200px !important;
    max-width: 200px !important;
  }
  
  .package-icon-container {
    width: 100px !important;
    height: 100px !important;
  }
  
  .package-info-box {
    max-width: 280px !important;
  }
  
  .package-title-text {
    font-size: 1rem !important;
  }
}

@media (max-width: 480px) {
  .new-packages-layout {
    gap: 1.5rem !important;
    padding: 1rem 0 !important;
  }
  
  .package-icon-container {
    width: 80px !important;
    height: 80px !important;
    margin-bottom: 1rem !important;
  }
  
  .package-info-box {
    padding: 0.8rem 1rem !important;
    max-width: 250px !important;
  }
  
  .package-title-text {
    font-size: 0.9rem !important;
  }
  
  .package-price-text {
    font-size: 0.9rem !important;
  }
  
  .package-group-text {
    font-size: 0.8rem !important;
  }
}/* Force 
horizontal layout for new packages */
.packages-section .new-packages-layout {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

.packages-section .new-package-item {
  flex: 0 1 auto !important;
  width: auto !important;
  min-width: 250px !important;
  max-width: 300px !important;
}

.packages-section .new-package-separator {
  flex: 0 0 auto !important;
  width: auto !important;
  align-self: center !important;
}

/* Ensure consistent container width across all sections */
.packages-section .container,
.highlights-section .container {
  width: 80% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}


/* Desktop specific overrides */
@media (min-width: 769px) {
  .new-packages-layout {
    flex-direction: row !important;
    align-items: flex-start !important;
  }
  
  .new-package-separator {
    transform: none !important;
    margin: 0 1rem !important;
  }
  
  .separator-line {
    height: 200px !important;
    width: auto !important;
  }
}/* Additiona
l overrides to ensure horizontal layout */
#tour-packages .new-packages-layout {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 1rem !important;
  flex-wrap: nowrap !important;
}

#tour-packages .new-package-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  flex: 1 !important;
  max-width: 280px !important;
}

#tour-packages .new-package-separator {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
}

/* Ensure separators are vertical on desktop */
@media (min-width: 769px) {
  #tour-packages .new-package-separator {
    height: 250px !important;
    width: 60px !important;
  }
  
  #tour-packages .separator-line {
    height: 200px !important;
    width: auto !important;
    max-width: 40px !important;
  }
}/* Un
iform card sizing and smaller text */
#tour-packages .new-package-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  flex: 1 !important;
  max-width: 280px !important;
  min-height: 350px !important; /* Uniform card height */
  justify-content: flex-start !important;
}

/* Uniform button sizing with smaller text */
#tour-packages .package-info-box {
  background-color: #1c4f99 !important;
  color: #ffffff !important;
  padding: 0.8rem 1rem !important; /* Slightly reduced padding */
  margin-bottom: 1rem !important;
  border-radius: 4px !important;
  width: 100% !important;
  max-width: 220px !important; /* Consistent width */
  min-height: 60px !important; /* Uniform button height */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#tour-packages .package-title-text {
  font-size: 0.95rem !important; /* Smaller text size */
  font-weight: 600 !important;
  line-height: 1.2 !important; /* Tighter line height */
  margin: 0 !important;
  color: #ffffff !important;
  text-transform: lowercase !important;
  text-align: center !important;
}

/* Ensure consistent icon container sizing */
#tour-packages .package-icon-container {
  width: 100px !important; /* Slightly smaller for better proportion */
  height: 100px !important;
  margin-bottom: 1.5rem !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-shrink: 0 !important; /* Prevent shrinking */
}

/* Consistent text sizing below buttons */
#tour-packages .package-price-text {
  font-size: 0.9rem !important; /* Slightly smaller */
  color: #e63946 !important;
  font-weight: normal !important;
  margin: 0.5rem 0 !important;
  line-height: 1.3 !important;
}

#tour-packages .package-group-text {
  font-size: 0.85rem !important; /* Slightly smaller */
  color: #333333 !important;
  margin: 0.5rem 0 0 0 !important;
  line-height: 1.3 !important;
}

/* Responsive adjustments for uniform sizing */
@media (max-width: 768px) {
  #tour-packages .new-package-item {
    min-height: 320px !important;
    max-width: 250px !important;
  }
  
  #tour-packages .package-info-box {
    max-width: 200px !important;
    min-height: 55px !important;
    padding: 0.7rem 0.8rem !important;
  }
  
  #tour-packages .package-title-text {
    font-size: 0.9rem !important;
  }
  
  #tour-packages .package-icon-container {
    width: 90px !important;
    height: 90px !important;
  }
}

@media (max-width: 480px) {
  #tour-packages .new-package-item {
    min-height: 300px !important;
    max-width: 220px !important;
  }
  
  #tour-packages .package-info-box {
    max-width: 180px !important;
    min-height: 50px !important;
    padding: 0.6rem 0.7rem !important;
  }
  
  #tour-packages .package-title-text {
    font-size: 0.85rem !important;
  }
  
  #tour-packages .package-icon-container {
    width: 80px !important;
    height: 80px !important;
    margin-bottom: 1rem !important;
  }
  
  #tour-packages .package-price-text {
    font-size: 0.85rem !important;
  }
  
  #tour-packages .package-group-text {
    font-size: 0.8rem !important;
  }
}/
* New Slideshow Design - Based on provided specification */
.new-itinerary-section {
  padding: 3rem 0 !important;
  background-color: #ffffff !important;
}

.new-itinerary-section .container {
  width: 80% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.new-slideshow-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  position: relative !important;
}

.new-itinerary-title {
  font-size: 2rem !important;
  color: #000000 !important;
  margin-bottom: 2rem !important;
  text-align: left !important;
  font-weight: 600 !important;
  padding: 0 2rem !important; /* Add padding for title */
}

.new-slide-wrapper {
  position: relative !important;
  height: 600px !important; /* Increased height */
  overflow: hidden !important;
  border-radius: 0 !important; /* Remove border radius for full width */
  box-shadow: none !important; /* Remove shadow for cleaner full-width look */
  width: 100% !important;
}

.new-slide {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  transition: opacity 0.5s ease !important;
}

.new-slide.active {
  opacity: 1 !important;
  z-index: 2 !important;
}

.new-slide-content {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
}

.new-slide-image {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
}

.slide-bg-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

.new-slide-text {
  position: absolute !important;
  top: 0 !important;
  left: 5px !important; /* Added 5px left margin */
  width: 35% !important;
  height: 100% !important;
  background-color: rgba(255, 255, 255, 0.6) !important; /* Changed to white semi-transparent */
  padding: 2rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  z-index: 2 !important;
  box-sizing: border-box !important;
}

.new-slide-text p {
  color: #000000 !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  margin-bottom: 1rem !important;
}

.new-slide-note {
  color: #333333 !important;
  font-size: 0.9rem !important;
  font-style: italic !important;
  margin-top: 1rem !important;
  opacity: 0.8 !important;
}

.new-slide-nav {
  position: absolute !important;
  top: 50% !important;
  right: 2rem !important;
  transform: translateY(-50%) !important;
  width: 50px !important;
  height: 50px !important;
  background-color: #1c4f99 !important;
  border: none !important;
  border-radius: 50% !important;
  color: #ffffff !important;
  cursor: pointer !important;
  z-index: 3 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
}

.new-slide-nav:hover {
  background-color: #e63946 !important;
  transform: translateY(-50%) scale(1.1) !important;
}

.new-slide-nav svg {
  width: 24px !important;
  height: 24px !important;
}

.new-scroll-indicator {
  text-align: center !important;
  margin-top: 2rem !important;
  color: #666666 !important;
}

.scroll-down-icon {
  width: 40px !important;
  height: 40px !important;
  margin: 0 auto 1rem auto !important;
  background-color: #1c4f99 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
}

.scroll-down-icon svg {
  width: 20px !important;
  height: 20px !important;
}

.new-scroll-indicator p {
  font-size: 0.9rem !important;
  color: #666666 !important;
  margin: 0 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .new-slide-wrapper {
    height: 500px !important; /* Increased from 350px */
  }
  
  .new-slide-text {
    width: 45% !important;
    padding: 1.5rem !important;
  }
  
  .new-slide-text p {
    font-size: 0.9rem !important;
  }
  
  .new-slide-nav {
    width: 45px !important;
    height: 45px !important;
    right: 1.5rem !important;
  }
  
  .new-slide-nav svg {
    width: 20px !important;
    height: 20px !important;
  }
  
  .new-itinerary-title {
    padding: 0 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .new-slide-wrapper {
    height: 400px !important; /* Increased from 300px */
  }
  
  .new-slide-text {
    width: 55% !important;
    padding: 1rem !important;
  }
  
  .new-slide-text p {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
  }
  
  .new-slide-note {
    font-size: 0.8rem !important;
  }
  
  .new-slide-nav {
    width: 40px !important;
    height: 40px !important;
    right: 1rem !important;
  }
  
  .new-slide-nav svg {
    width: 18px !important;
    height: 18px !important;
  }
  
  .new-itinerary-title {
    font-size: 1.5rem !important;
    padding: 0 1rem !important;
  }
}


.new-itinerary-section {
  width: 100% !important;
  max-width: 100% !important;
  padding: 3rem 0 !important;
  margin: 0 !important;
}
/*
 Comprehensive uniform width system for all sections */
.highlights-section .container,
.packages-section .container,
.new-itinerary-section .container,
.itinerary-overview-section .container,
section .container {
  width: 80% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Ensure hero section maintains full width */
.china-hero-section {
  width: 100% !important;
}

/* Responsive adjustments for uniform width system */
@media (max-width: 768px) {
  .container,
  .highlights-section .container,
  .packages-section .container,
  .new-itinerary-section .container,
  .itinerary-overview-section .container,
  section .container {
    width: 90% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .footer-container {
    width: 90% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (max-width: 480px) {
  .container,
  .highlights-section .container,
  .packages-section .container,
  .new-itinerary-section .container,
  .itinerary-overview-section .container,
  section .container {
    width: 95% !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  
  .footer-container {
    width: 95% !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
}