/* Sitemap Styles
------------------------------------------- */

/* List styling */
.mil-sitemap-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.mil-sitemap-list li {
    margin-bottom: 1.2rem;
    transition: transform 0.3s ease;
}

.mil-sitemap-list li:last-child {
    margin-bottom: 0;
}

/* Link styling */
.mil-sitemap-list a {
    color: #fff;
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding: 0.3rem 0;
    transition: all 0.3s ease;
    opacity: 0.8;
}

/* Hover effects */
.mil-sitemap-list a:hover {
    opacity: 1;
    transform: translateX(5px);
    color: #FF8473; /* Using the gradient accent color from the main CSS */
}

/* Underline effect on hover */
.mil-sitemap-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #FF8473;
    transition: width 0.3s ease;
}

.mil-sitemap-list a:hover::after {
    width: 100%;
}

/* Heading styles */
.mil-sitemap-heading {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

/* RTL support */
html[dir="rtl"] .mil-sitemap-list a:hover {
    transform: translateX(-5px);
}

html[dir="rtl"] .mil-sitemap-list a::after {
    left: auto;
    right: 0;
}

/* Responsive styles */
@media (max-width: 992px) {
    .mil-sitemap-list li {
        margin-bottom: 1rem;
    }
    
    .mil-sitemap-heading {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Adjust spacing for better mobile layout */
    .mil-sitemap-list {
        margin-bottom: 2rem;
    }
    
    .mil-sitemap-list li {
        margin-bottom: 0.8rem;
    }
    
    /* Make links easier to tap on mobile */
    .mil-sitemap-list a {
        padding: 0.5rem 0;
        display: block;
    }
    
    /* Ensure columns stack properly on mobile */
    .mil-sitemap-section .col-md-3 {
        margin-bottom: 2rem;
    }
    
    /* Reduce heading size on mobile */
    .mil-sitemap-heading {
        font-size: 1.6rem !important;
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 576px) {
    /* Further adjustments for very small screens */
    .mil-sitemap-list li {
        margin-bottom: 0.7rem;
    }
    
    /* Increase tap target size for better mobile usability */
    .mil-sitemap-list a {
        padding: 0.6rem 0;
    }
    
    /* Add extra spacing between columns */
    .mil-sitemap-section .col-md-3:not(:last-child) {
        margin-bottom: 2.5rem;
    }
}
