/* General styles for the sitemap page */
.page-sitemap {
    font-family: Arial, sans-serif;
    color: var(--text-main, #333333);
    background-color: var(--background, #F5F7FA);
}

.page-sitemap a {
    color: var(--primary-color, #E53935);
    text-decoration: none;
}

.page-sitemap a:hover {
    text-decoration: underline;
}

.page-sitemap__article-wrap {
    max-width: 1150px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-sitemap__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-sitemap__light-bg {
    background-color: var(--background, #F5F7FA);
    color: var(--text-main, #333333);
}

.page-sitemap__hero-section.page-sitemap__light-bg {
    background: var(--background, #F5F7FA);
    color: var(--text-main, #333333);
}

.page-sitemap__content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1150px;
    margin: 0 auto;
    padding: 20px;
}

.page-sitemap__text-content {
    margin-bottom: 30px;
}

.page-sitemap__main-title {
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main, #333333);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-sitemap__hero-section.page-sitemap__light-bg .page-sitemap__main-title {
    color: var(--text-main, #333333);
}

.page-sitemap__description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-sitemap__text-main {
    color: var(--text-main, #333333);
}

.page-sitemap__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.page-sitemap__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
}

.page-sitemap__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-sitemap__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-sitemap__btn-secondary {
    background: #ffffff;
    color: var(--primary-color, #E53935);
    border: 2px solid var(--primary-color, #E53935);
}

.page-sitemap__btn-secondary:hover {
    background: var(--primary-color, #E53935);
    color: #ffffff;
}

.page-sitemap__image-figure {
    margin: 0;
    padding: 0;
    text-align: center;
}

.page-sitemap__hero-image {
    width: 100%;
    height: auto;
    max-width: 680px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.page-sitemap__image-caption {
    font-size: 0.9em;
    color: #666666;
    margin-top: 10px;
}

.page-sitemap__hero-section.page-sitemap__light-bg .page-sitemap__image-caption {
    color: #666666;
}

/* Sitemap Grid Section */
.page-sitemap__section-title {
    font-size: 2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-main, #333333);
}

.page-sitemap__text-block {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: justify;
}

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

.page-sitemap__sitemap-category {
    background: var(--card-bg, #FFFFFF);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sitemap__sitemap-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-sitemap__category-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color, #E53935);
    text-align: center;
}

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

.page-sitemap__sitemap-item {
    margin-bottom: 10px;
}

.page-sitemap__sitemap-item a {
    display: block;
    padding: 8px 0;
    color: var(--text-main, #333333);
    font-size: 1em;
    transition: color 0.2s ease;
}

.page-sitemap__sitemap-item a:hover {
    color: var(--primary-color, #E53935);
    text-decoration: none;
}

.page-sitemap__center-image {
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-sitemap__content-image {
    width: 100%;
    height: auto;
    max-width: 680px;
    border-radius: 100%; /* Example for a rounded image, can be adjusted */
    display: block;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Dark Section for contrast */
.page-sitemap__dark-section {
    background: var(--primary-color, #E53935);
    padding: 60px 0;
    color: #ffffff;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-sitemap__dark-section .page-sitemap__section-title,
.page-sitemap__dark-section .page-sitemap__text-block {
    color: #ffffff;
}

.page-sitemap__white-text {
    color: #ffffff;
}

/* Bottom CTA */
.page-sitemap__bottom-cta-container {
    text-align: center;
    margin-top: 50px;
    padding-bottom: 50px;
}

.page-sitemap__large-btn {
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-sitemap__main-title {
        font-size: 2.5em;
    }

    .page-sitemap__sitemap-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* 1. Top section title + CTA */
    .page-sitemap__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }

    .page-sitemap__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-sitemap__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-sitemap__cta-buttons {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
        padding: 0 15px;
    }

    .page-sitemap__btn {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-sitemap__content-container {
        padding: 15px;
    }

    /* 2. Single column long text container */
    .page-sitemap__article-wrap {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-sitemap__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-sitemap__text-block {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .page-sitemap__sitemap-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .page-sitemap__sitemap-category {
        padding: 20px;
    }

    .page-sitemap__category-title {
        font-size: 1.2em;
        margin-bottom: 15px;
    }

    .page-sitemap__sitemap-item a {
        font-size: 0.95em;
        padding: 6px 0;
    }

    /* 3. Generic images and figures */
    .page-sitemap img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-sitemap__image-figure {
        margin: 20px 0;
    }

    .page-sitemap__image-caption {
        font-size: 0.85em;
    }

    /* 4. Buttons and button containers (already covered in top section CTA, but ensuring general application) */
    .page-sitemap__cta-buttons, .page-sitemap__bottom-cta-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column;
        gap: 10px;
    }

    .page-sitemap__btn, .page-sitemap__large-btn {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 5. Registration tutorial and FAQ (not directly applicable to sitemap, but ensuring general text blocks and lists are readable) */
    .page-sitemap p, .page-sitemap li {
        font-size: 15px;
        line-height: 1.6;
    }

    .page-sitemap__dark-section {
        padding: 40px 15px;
    }

    .page-sitemap__bottom-cta-container {
        margin-top: 30px;
        padding-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .page-sitemap__main-title {
        font-size: 1.7em;
    }

    .page-sitemap__section-title {
        font-size: 1.5em;
    }

    .page-sitemap__sitemap-category {
        padding: 15px;
    }

    .page-sitemap__category-title {
        font-size: 1.1em;
    }

    .page-sitemap__sitemap-item a {
        font-size: 0.9em;
    }
}