/* Base styles for the sitemap page */
.page-sitemap {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #f8f8f8; /* A very light grey for subtle contrast with body default white */
}

/* Hero Section */
.page-sitemap__hero-section {
    padding-top: 10px; /* Small top padding as per instruction */
    padding-bottom: 40px;
    background: linear-gradient(180deg, #C91F17 0%, #E53935 100%); /* Brand colors for hero background */
    color: #FFF5E1; /* Light text for dark background */
    text-align: center;
}

.page-sitemap__hero-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-sitemap__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for H1 size */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFD86A; /* Gold color for main title */
}

.page-sitemap__intro-description {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #FFF5E1; /* Light text */
}

/* Content Section */
.page-sitemap__content-section {
    padding: 60px 0;
    background-color: #B71C1C; /* Custom background color */
    color: #FFF5E1; /* Custom text main color */
}

.page-sitemap__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-sitemap__section-title,
.page-sitemap__sub-title,
.page-sitemap__info-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    color: #FFD86A; /* Gold color for titles */
}

.page-sitemap__section-description,
.page-sitemap__text-block,
.page-sitemap__info-text {
    font-size: 1.05rem;
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-sitemap__grid-item {
    background-color: #D32F2F; /* Card BG custom color */
    border: 1px solid #F2B544; /* Custom border color */
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sitemap__grid-title {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FFCC66; /* Glow color for grid titles */
}

.page-sitemap__grid-text {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: #FFF5E1; /* Text main color */
}

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

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

.page-sitemap__link {
    color: #F4D34D; /* Gold color for links */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

/* CTA Section */
.page-sitemap__cta-section {
    background-color: #7A0E0E; /* Deep Red custom color */
    padding: 80px 0;
    text-align: center;
    color: #FFF5E1; /* Text main color */
}

.page-sitemap__cta-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFD86A; /* Gold color for CTA title */
}

.page-sitemap__cta-description {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-sitemap__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.page-sitemap__btn-primary,
.page-sitemap__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding in width */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-sitemap__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
    color: #7A0E0E; /* Deep Red text for contrast */
    border: 2px solid #FFD86A;
}

.page-sitemap__btn-primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    box-shadow: 0 0 15px #FFCC66; /* Glow effect */
}

.page-sitemap__btn-secondary {
    background: transparent;
    color: #FFD86A; /* Gold text */
    border: 2px solid #FFD86A; /* Gold border */
}

.page-sitemap__btn-secondary:hover {
    background: #FFD86A; /* Gold background on hover */
    color: #7A0E0E; /* Deep Red text on hover */
    box-shadow: 0 0 15px #FFCC66; /* Glow effect */
}

/* Final Info Section */
.page-sitemap__final-info-section {
    padding: 60px 0;
    background-color: #f8f8f8; /* Light background for contrast */
    color: #333333; /* Dark text for light background */
}

.page-sitemap__image-wrapper {
    margin: 40px 0;
    text-align: center;
}

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

.page-sitemap__image-caption {
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 10px;
    color: #555555;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
    .page-sitemap__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 30px;
    }

    .page-sitemap__main-title {
        font-size: 2rem;
    }

    .page-sitemap__intro-description {
        font-size: 1rem;
    }

    .page-sitemap__section-title,
    .page-sitemap__sub-title,
    .page-sitemap__info-title,
    .page-sitemap__cta-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .page-sitemap__grid {
        grid-template-columns: 1fr; /* Single column layout for grid */
    }

    .page-sitemap__grid-item {
        padding: 20px;
    }

    .page-sitemap__grid-title {
        font-size: 1.4rem;
    }

    .page-sitemap__cta-description {
        font-size: 1rem;
    }

    .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 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* Universal image responsive styles */
    .page-sitemap img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .page-sitemap__container,
    .page-sitemap__section,
    .page-sitemap__card,
    .page-sitemap__grid-item,
    .page-sitemap__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-sitemap__content-section,
    .page-sitemap__cta-section,
    .page-sitemap__final-info-section {
        padding: 40px 0;
    }
}