/* ===== Site Map Page ===== */
.sitemap-page {
    background-color: var(--bg);
}

/* ===== HERO SECTION ===== */
.sitemap-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.sitemap-hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding-horizontal);
    position: relative;
    z-index: 2;
    text-align: center;
}

.sitemap-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.sitemap-hero p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== SITEMAP CONTENT ===== */
.sitemap-content {
    padding: 3rem 0;
}

.sitemap-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--padding-horizontal);
}

/* ===== QUICK NAVIGATION ===== */
.quick-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.quick-nav-btn {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.quick-nav-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-nav-btn svg {
    width: 18px;
    height: 18px;
}

/* ===== SITEMAP SECTIONS ===== */
.sitemap-section {
    margin-bottom: 4rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.sitemap-section h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-light);
    position: relative;
}

.sitemap-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.sitemap-section h2 svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
}

/* ===== CATEGORY GRID ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-group {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.category-group:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.category-group h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--border-light);
}

.category-group h3 svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

/* ===== SITEMAP LINKS ===== */
.sitemap-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-links li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1rem;
}

.sitemap-links li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.2rem;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

.sitemap-links a {
    color: var(--text-medium);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-radius: var(--radius-sm);
}

.sitemap-links a:hover {
    color: var(--primary);
    background: var(--primary-extra-light);
    padding-left: 0.5rem;
}

.sitemap-links a svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* ===== IMPROVED CENTERED TOOL CARDS ===== */
.sitemap-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.sitemap-tool-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.5rem;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sitemap-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.sitemap-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.sitemap-tool-card:hover::before {
    transform: scaleX(1);
}

.sitemap-tool-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-extra-light);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.sitemap-tool-card:hover .sitemap-tool-icon {
    background: var(--primary);
    transform: scale(1.1);
}

.sitemap-tool-card:hover .sitemap-tool-icon svg {
    color: var(--white);
}

.sitemap-tool-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
    transition: var(--transition);
}

.sitemap-tool-info {
    width: 100%;
    margin-bottom: 1.25rem;
}

.sitemap-tool-info h3 {
    font-size: 1.25rem;
    margin: 0 0 0.75rem 0;
    color: var(--text);
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    width: 100%;
    display: block;
}

.sitemap-tool-info p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-light);
    line-height: 1.5;
    opacity: 0.9;
    text-align: center;
    width: 100%;
    display: block;
}

.sitemap-tool-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.sitemap-tool-tag {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    background: var(--bg-secondary);
    color: var(--text-light);
    border-radius: 20px;
    font-weight: 500;
    transition: var(--transition);
}

.sitemap-tool-card:hover .sitemap-tool-tag {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* ===== SEARCH CTA ===== */
.search-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin-top: 4rem;
}

.search-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.search-cta p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--text-medium);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-box .svg-icon {
    width: 24px;
    height: 24px;

}


.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .sitemap-hero {
        padding: 3rem 0;
    }
    
    .sitemap-hero h1 {
        font-size: 2.25rem;
    }
    
    .sitemap-hero p {
        font-size: 1.125rem;
    }
    
    .sitemap-section {
        padding: 2rem;
    }
    
    .sitemap-section h2 {
        font-size: 1.5rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .sitemap-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .quick-nav-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .search-cta {
        padding: 3rem 1rem;
    }
}

@media (max-width: 480px) {
    .sitemap-hero h1 {
        font-size: 2rem;
    }
    
    .sitemap-hero p {
        font-size: 1rem;
    }
    
    .sitemap-section {
        padding: 1.5rem;
    }
    
    .sitemap-section h2 {
        font-size: 1.25rem;
    }
    
    .sitemap-tool-card {
        padding: 1.5rem 1rem;
    }
    
    .sitemap-tool-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 1rem;
    }
    
    .sitemap-tool-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .search-cta h2 {
        font-size: 1.5rem;
    }
    
    .search-cta p {
        font-size: 1rem;
    }
}

/* Animation for sections */
.sitemap-section, .search-cta {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.sitemap-section.visible, .search-cta.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-section p {
  max-width: 700px;
}