/* style/sitemap.css */
.page-sitemap {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--background-color, #ffffff); /* Inherit from shared or default white */
}

/* Hero Section */
.page-sitemap__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming body has header offset */
    background-color: var(--background-color, #ffffff);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
}

.page-sitemap__hero-image {
    width: 100%;
    max-width: 1200px; /* Constrain max width for desktop */
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sitemap__hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.page-sitemap__main-title {
    font-size: clamp(28px, 3.5vw, 42px); /* Responsive font size */
    color: #017439;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-sitemap__description {
    font-size: 18px;
    color: #555555;
    margin-bottom: 30px;
}

/* General Section Styling */
.page-sitemap__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-sitemap__section-title {
    font-size: clamp(24px, 3vw, 36px);
    color: #017439;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.page-sitemap__section-description {
    font-size: 17px;
    color: #666666;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Navigation Section */
.page-sitemap__navigation-section {
    background-color: #f9f9f9; /* Light background */
}

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

.page-sitemap__category-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-sitemap__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-sitemap__category-title {
    font-size: 22px;
    color: #017439;
    font-weight: 600;
    margin-bottom: 15px;
}

.page-sitemap__category-description {
    font-size: 15px;
    color: #777777;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes list to bottom if descriptions vary */
}

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

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

.page-sitemap__link {
    color: #017439;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease, text-decoration 0.3s ease;
    display: block;
    padding: 5px 0;
}

.page-sitemap__link:hover {
    color: #005a2d;
    text-decoration: underline;
}

.page-sitemap__overview-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* CTA Section */
.page-sitemap__cta-section {
    background-color: #017439; /* Dark background */
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.page-sitemap__cta-section .page-sitemap__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-sitemap__cta-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-sitemap__cta-content {
    max-width: 700px;
}

.page-sitemap__cta-title {
    font-size: clamp(26px, 3.2vw, 38px);
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-sitemap__cta-description {
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 30px;
}

.page-sitemap__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Limit button group width */
    margin: 0 auto;
    box-sizing: border-box; /* Include padding in width calculation */
}

.page-sitemap__btn-primary,
.page-sitemap__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure button itself is responsive */
    box-sizing: border-box;
}

.page-sitemap__btn-primary {
    background-color: #C30808; /* Register color */
    color: #FFFF00; /* Register font color */
    border: 2px solid #C30808;
}

.page-sitemap__btn-primary:hover {
    background-color: #e01010;
    border-color: #e01010;
    transform: translateY(-2px);
}

.page-sitemap__btn-secondary {
    background-color: #FFFFFF;
    color: #C30808; /* Login color */
    border: 2px solid #C30808;
}

.page-sitemap__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #a00606;
    border-color: #a00606;
    transform: translateY(-2px);
}

/* FAQ Section */
.page-sitemap__faq-section {
    background-color: #f9f9f9;
}

.page-sitemap__faq-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

details.page-sitemap__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-sitemap__faq-item summary.page-sitemap__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-sitemap__faq-item summary.page-sitemap__faq-question::-webkit-details-marker {
  display: none;
}
details.page-sitemap__faq-item summary.page-sitemap__faq-question:hover {
  background: #f5f5f5;
}
.page-sitemap__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-sitemap__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-sitemap__faq-item .page-sitemap__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}
.page-sitemap__faq-answer p {
    margin: 0;
    font-size: 16px;
    color: #555555;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-sitemap__hero-image {
        max-width: 90%;
    }
    .page-sitemap__container {
        padding: 30px 15px;
    }
    .page-sitemap__grid {
        gap: 20px;
    }
    .page-sitemap__category-card {
        padding: 20px;
    }
    .page-sitemap__category-title {
        font-size: 20px;
    }
    .page-sitemap__cta-section .page-sitemap__container {
        flex-direction: column;
    }
    .page-sitemap__cta-image {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .page-sitemap__hero-section {
        padding-top: 10px;
        padding-bottom: 30px;
    }
    .page-sitemap__hero-image {
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important; /* Mobile: prevent cropping */
        aspect-ratio: unset !important; /* Mobile: allow natural aspect ratio */
        margin-bottom: 15px;
    }
    .page-sitemap__hero-content {
        padding: 0 15px;
    }
    .page-sitemap__main-title {
        font-size: clamp(24px, 7vw, 36px);
        text-align: center;
    }
    .page-sitemap__description {
        font-size: 16px;
        text-align: center;
        margin-bottom: 20px;
    }

    /* General Section */
    .page-sitemap__container {
        padding: 20px 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden; /* Prevent horizontal scroll */
    }
    .page-sitemap__section-title {
        font-size: clamp(22px, 6vw, 32px);
        margin-bottom: 10px;
    }
    .page-sitemap__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    /* Navigation Section */
    .page-sitemap__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-sitemap__category-card {
        padding: 18px;
    }
    .page-sitemap__category-title {
        font-size: 20px;
    }
    .page-sitemap__category-description {
        font-size: 14px;
    }
    .page-sitemap__link {
        font-size: 15px;
    }
    .page-sitemap__overview-image {
        max-width: 100% !important;
        height: auto !important;
        margin-top: 30px;
    }

    /* CTA Section */
    .page-sitemap__cta-section {
        padding: 40px 0;
    }
    .page-sitemap__cta-image {
        max-width: 100% !important;
        height: auto !important;
        margin-bottom: 20px;
    }
    .page-sitemap__cta-title {
        font-size: clamp(24px, 6.5vw, 32px);
        margin-bottom: 15px;
    }
    .page-sitemap__cta-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-sitemap__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-sitemap__btn-primary,
    .page-sitemap__btn-secondary {
        font-size: 16px;
        padding: 12px 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* FAQ Section */
    .page-sitemap__faq-image {
        max-width: 100% !important;
        height: auto !important;
        margin-bottom: 30px;
    }
    details.page-sitemap__faq-item summary.page-sitemap__faq-question { padding: 15px; }
    .page-sitemap__faq-qtext { font-size: 15px; }
    .page-sitemap__faq-toggle {
        font-size: 20px;
        width: 24px;
        margin-left: 10px;
    }
    details.page-sitemap__faq-item .page-sitemap__faq-answer {
        padding: 0 15px 15px;
    }
    .page-sitemap__faq-answer p {
        font-size: 15px;
    }

    /* All images in content area */
    .page-sitemap img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Ensure content containers are responsive */
    .page-sitemap__section,
    .page-sitemap__card,
    .page-sitemap__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Ensure all images maintain original color */
.page-sitemap img {
    filter: none !important;
}

/* Contrast fix classes (as per instruction) */
.page-sitemap__dark-bg {
  color: #ffffff;
  background: #017439;
}

.page-sitemap__light-bg {
  color: #333333;
  background: #ffffff;
}

.page-sitemap__medium-bg {
  color: #000000;
  background: #FFFFFF;
}

.page-sitemap__content-area,
.page-sitemap__text-block {
  color: #333333;
  background: #ffffff;
}

.page-sitemap p,
.page-sitemap li {
  color: #333333;
}

.page-sitemap__card {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-sitemap__dark-section {
  background: #017439;
  color: #ffffff;
}

.page-sitemap__btn-primary {
  background: #C30808;
  color: #FFFF00;
  border: 2px solid transparent;
}

.page-sitemap__btn-secondary {
  background: #ffffff;
  color: #C30808;
  border: 2px solid #C30808;
}

@media (max-width: 768px) {
  .page-sitemap {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-sitemap__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
}

.page-sitemap__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-sitemap__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}