/* ==================== CUSTOM HTML SITEMAP STYLES ====================
 * Custom Sitemap Styles - Updated design
 * Created: 28-10-2025
 * Updated: 29-10-2025
 * ================================================================== */

/* Sitemap Wrapper */
.sitemap-wrapper {
    padding: 0;
    max-width: 1170px;
    margin: 0 auto;
    background: #ffffff;
}

/* Sitemap Section */
.sitemap-section {
    margin-bottom: 50px;
}

/* Sitemap Title (Section Headings) */
.sitemap-title {
    font-size: 24px;
    font-family: inherit;
    line-height: 1.2em;
    color: #000000;
    font-weight: 700;
    margin-bottom: 30px;
    margin-top: 0;
    border-bottom: none;
    background: #eee;
    padding: 20px;
}

/* Sitemap Grid Layout */
.sitemap-grid {
    display: grid;
    gap: 15px 30px;
    margin-bottom: 0;
}

/* Column Variations */
.sitemap-columns-1 {
    grid-template-columns: 1fr;
}

.sitemap-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.sitemap-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.sitemap-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Sitemap Items */
.sitemap-item {
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
}

/* Blue square bullet before each link */
.sitemap-item::before {
    content: "■";
    color: #0875f7;
    font-size: 10px;
    margin-right: 10px;
    margin-top: 6px;
    flex-shrink: 0;
}

.sitemap-item a {
    color: #000000;
    text-decoration: none;
    display: inline-block;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.sitemap-item a:hover {
    color: #0875f7;
    text-decoration: none;
}

/* Parent Items with Children */
.sitemap-parent-item {
    margin-bottom: 20px;
}

.sitemap-parent-item > a {
    font-weight: 500;
    color: #000000;
    margin-bottom: 10px;
    display: block;
}

.sitemap-parent-item > a:hover {
    color: #0875f7;
}

/* Children List */
.sitemap-children {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
    margin-bottom: 0;
}

.sitemap-children li {
    margin-bottom: 8px;
    padding-left: 0;
}

.sitemap-children li a {
    color: #0875f7;
    font-weight: 400;
    font-size: 14px;
}

.sitemap-children li a:hover {
    color: #1C72EB;
}

/* Error Message */
.sitemap-error {
    color: #e31e24;
    font-size: 14px;
    padding: 10px;
    background: #fff5f5;
    border-left: 3px solid #e31e24;
    margin: 10px 0;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .sitemap-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .sitemap-columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .sitemap-section {
        padding: 25px 20px;
    }

    .sitemap-columns-2,
    .sitemap-columns-3,
    .sitemap-columns-4 {
        grid-template-columns: 1fr;
    }

    .sitemap-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .sitemap-item a {
        font-size: 15px;
    }
}

@media screen and (max-width: 480px) {
    .sitemap-section {
        padding: 20px 15px;
        margin-bottom: 10px;
    }

    .sitemap-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .sitemap-item a {
        font-size: 14px;
    }

    .sitemap-item::before {
        font-size: 8px;
        margin-right: 8px;
        margin-top: 5px;
    }
}

/* Additional Styling for Better Visual Hierarchy */
.sitemap-item:last-child {
    margin-bottom: 0;
}

/* Ensure proper spacing in grid items */
.sitemap-grid > .sitemap-item {
    align-self: start;
}

/* Print Styles */
@media print {
    .sitemap-wrapper {
        max-width: 100%;
        padding: 0;
    }

    .sitemap-section {
        background: #f5f5f5;
        padding: 20px;
        page-break-inside: avoid;
    }

    .sitemap-item::before {
        color: #000000;
    }

    .sitemap-item a {
        color: #000000;
        text-decoration: none;
    }

    .sitemap-item a:after {
        content: " (" attr(href) ")";
        font-size: 10px;
        color: #666666;
    }
}
