/* Base styles for the sitemap page */
.page-sitemap {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
}

.page-sitemap__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Hero Section */
.page-sitemap__hero-section {
  padding-top: 10px; /* Small top padding to avoid double header offset */
  padding-bottom: 40px;
  background-color: #f8f8f8; /* Light background for this section */
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-sitemap__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 40px 0;
}

.page-sitemap__hero-image {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

.page-sitemap__main-visual {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-sitemap__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  color: #333333; /* Text color for light background */
}

.page-sitemap__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #C91F17; /* Brand primary color for H1 */
  max-width: 600px;
}

.page-sitemap__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 600px;
}

.page-sitemap__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

.page-sitemap__btn-primary,
.page-sitemap__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-sitemap__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
  color: #7A0E0E; /* Deep Red for text on gold button */
  border: 2px solid #F2B544; /* Gold border */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-sitemap__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-sitemap__btn-secondary {
  background-color: #C91F17; /* Primary brand color */
  color: #FFF5E1; /* Main text color for contrast */
  border: 2px solid #E53935; /* Auxiliary brand color */
}

.page-sitemap__btn-secondary:hover {
  background-color: #E53935; /* Auxiliary brand color on hover */
  color: #ffffff;
}


/* Content Area */
.page-sitemap__content-area {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-sitemap__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #C91F17;
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 10px;
  position: relative;
}

.page-sitemap__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #E6B800; /* Gold accent */
  border-radius: 2px;
}

.page-sitemap__text-block {
  font-size: 1.05em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #555555;
}

.page-sitemap__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sitemap__card {
  background-color: #D32F2F; /* Card BG color */
  color: #FFF5E1; /* Text Main color */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-sitemap__card-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFD86A; /* Gold for card titles */
}

.page-sitemap__card-description {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-sitemap__card-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-sitemap__link-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-sitemap__link-list li {
  margin-bottom: 8px;
}

.page-sitemap__link {
  color: #FFF5E1; /* Text Main color */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  display: block; /* Make the entire list item clickable area */
  padding: 5px 0;
}

.page-sitemap__link:hover {
  color: #FFD86A; /* Gold on hover */
  text-decoration: underline;
}

.page-sitemap__btn-download {
  margin-top: auto; /* Push download button to the bottom of the card */
  width: 100%;
}

/* FAQ Section */
.page-sitemap__faq-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Background color for this section */
  color: #FFF5E1; /* Text Main color for dark background */
}

.page-sitemap__faq-section .page-sitemap__section-title {
  color: #FFF5E1; /* Text Main color for title on dark background */
}

.page-sitemap__faq-section .page-sitemap__section-title::after {
  background-color: #FFD86A; /* Gold accent */
}

.page-sitemap__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sitemap__faq-item {
  background-color: #D32F2F; /* Card BG color for FAQ items */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-sitemap__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  color: #FFF5E1; /* Text Main color */
  position: relative;
  list-style: none; /* Hide default marker */
}

.page-sitemap__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-sitemap__faq-qtext {
  flex-grow: 1;
}

.page-sitemap__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-sitemap__faq-item[open] .page-sitemap__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to form an X or minus */
}

.page-sitemap__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #FFF5E1; /* Text Main color */
  opacity: 0.9;
}

/* General image and container responsive styles */
.page-sitemap img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-sitemap__section,
.page-sitemap__card,
.page-sitemap__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Media Queries for responsiveness */
@media (max-width: 1024px) {
  .page-sitemap__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }
  .page-sitemap__section-title {
    font-size: 2em;
  }
  .page-sitemap__hero-container {
    flex-direction: column;
    text-align: center;
  }
  .page-sitemap__hero-content {
    order: 2; /* Content below image on smaller screens */
    flex: 1 1 100%;
  }
  .page-sitemap__hero-image {
    order: 1; /* Image above content on smaller screens */
    flex: 1 1 100%;
  }
  .page-sitemap__cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* Fixed Header Spacing: Small top padding for hero section */
  .page-sitemap__hero-section {
    padding-top: 10px !important; /* Ensure it overrides any other padding */
  }

  /* HERO Section */
  .page-sitemap__hero-container {
    padding: 30px 0;
    gap: 20px;
  }
  .page-sitemap__main-title {
    font-size: clamp(1.6em, 7vw, 2.5em);
    max-width: 100%;
  }
  .page-sitemap__description {
    font-size: 1em;
    max-width: 100%;
  }
  .page-sitemap__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-sitemap__btn-primary,
  .page-sitemap__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  /* Content Area */
  .page-sitemap__content-area {
    padding: 40px 0;
  }
  .page-sitemap__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-sitemap__text-block {
    font-size: 0.95em;
    margin-bottom: 40px;
    padding: 0 15px;
  }
  .page-sitemap__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  .page-sitemap__card {
    padding: 25px;
  }
  .page-sitemap__card-title {
    font-size: 1.4em;
  }

  /* FAQ Section */
  .page-sitemap__faq-section {
    padding: 40px 0;
  }
  .page-sitemap__faq-list {
    padding: 0 15px;
  }
  .page-sitemap__faq-item summary {
    font-size: 1.1em;
    padding: 18px 20px;
  }
  .page-sitemap__faq-answer {
    padding: 0 20px 18px;
    font-size: 0.95em;
  }

  /* General image and container responsive styles for mobile */
  .page-sitemap img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-sitemap__section,
  .page-sitemap__card,
  .page-sitemap__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}