/* Override default breadcrumb margin to prevent white gap */
.sitemap-page .crumb,
/* If there was a body class, but just in case, let's use a specific rule or just .crumb if it only affects this page */
.bread .crumb {
    margin-bottom: 0px !important;
    margin-top: 5px !important;
}

/* Full box background */
.sitemap-full-box {
    padding: 60px 0 100px;
    background: #f8fafc;
    /* Very light cool gray/blue background */
    min-height: calc(100vh - 400px);
}

.sitemap-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero header */
.sitemap-hero {
    text-align: center;
    margin-bottom: 70px;
}

.sitemap-hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    letter-spacing: -1px;
}

/* Decorative underline */
.sitemap-hero h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, #194eb9, #4ca1af);
    border-radius: 3px;
}

.sitemap-hero p {
    color: #64748b;
    font-size: 18px;
    max-width: 600px;
    margin: 25px auto 0;
    line-height: 1.6;
}

/* Horizontal Sections */
.sitemap-section {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: box-shadow 0.3s ease;
}

.sitemap-section:hover {
    box-shadow: 0 10px 40px rgba(25, 78, 185, 0.08);
}

@media (min-width: 992px) {
    .sitemap-section {
        flex-direction: row;
        align-items: flex-start;
        padding: 50px;
        gap: 50px;
    }
}

/* Category Header (Left Side on Desktop) */
.section-header {
    flex: 0 0 280px;
    text-align: left;
}

.section-header .icon-wrap {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(25, 78, 185, 0.1), rgba(76, 161, 175, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #194eb9;
    font-size: 28px;
}

.section-header h3 {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.section-header p {
    color: #64748b;
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
}

/* Pill Links Container (Right Side on Desktop) */
.section-content {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Individual Mini-card / Pill */
.pill-link {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    color: #334155;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.pill-link::after {
    content: '\f285';
    /* bi-chevron-right */
    font-family: 'bootstrap-icons';
    font-size: 12px;
    margin-left: 8px;
    color: #94a3b8;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Hover effects for Pill */
.pill-link:hover {
    background: #ffffff;
    color: #194eb9;
    border-color: rgba(25, 78, 185, 0.3);
    box-shadow: 0 8px 16px rgba(25, 78, 185, 0.1);
    transform: translateY(-3px);
}

.pill-link:hover::after {
    opacity: 1;
    transform: translateX(0);
    color: #194eb9;
}

/* Specific styling for Featured/Hot section */
.sitemap-section.featured {
    background: linear-gradient(135deg, #ffffff, #f0f7ff);
    border-color: rgba(25, 78, 185, 0.15);
}

.sitemap-section.featured .pill-link {
    border-color: rgba(25, 78, 185, 0.2);
}

.sitemap-section.featured .pill-link:hover {
    background: #194eb9;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(25, 78, 185, 0.25);
}

.sitemap-section.featured .pill-link:hover::after {
    color: #ffffff;
}

/* Responsive adjustments */
/* Tablet (max-width: 991px) */
@media (max-width: 991px) {
    .sitemap-section {
        padding: 35px 30px;
        gap: 20px;
    }

    .section-header {
        flex: none;
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 20px;
    }

    .section-header .icon-wrap {
        margin: 0 auto 15px auto;
    }

    .section-content {
        justify-content: center;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .sitemap-full-box {
        padding: 40px 0 60px;
    }

    .sitemap-hero {
        margin-bottom: 40px;
    }

    .sitemap-hero h1 {
        font-size: 34px;
        margin-bottom: 15px;
    }

    .sitemap-hero p {
        font-size: 16px;
        margin-top: 20px;
    }

    .sitemap-section {
        padding: 25px 20px;
        margin-bottom: 25px;
        border-radius: 20px;
    }

    .section-header h3 {
        font-size: 22px;
    }

    .section-header .icon-wrap {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    /* Optimize touch targets for mobile */
    .pill-link {
        font-size: 14px;
        padding: 10px 16px;
        border-radius: 10px;
        flex-grow: 1;
        /* Make buttons slightly larger on small screens */
        justify-content: center;
        text-align: center;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .pill-link {
        width: 100%;
        /* Full width buttons for very small screens */
    }
}

.crumb {
    max-width: 1200px;
    margin: 0 auto 18px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 2px;
    border: 1px solid #d5e1f7;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    box-shadow: 0 4px 12px rgba(21, 44, 87, 0.08);
    color: #5e6f8f;
    font-size: 15px;
    line-height: 1.5;
    box-sizing: border-box;
}

.crumb a {
    display: inline-flex;
    align-items: center;
    color: #1a4ea8;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}

.crumb a:hover {
    color: var(--article-primary-hover);
    text-decoration: underline;
}

.crumb a:first-of-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #e6eeff;
    margin-right: 2px;
}

.crumb a img {
    float: none;
    display: inline-block;
    vertical-align: middle;
    width: 12px;
    height: 12px;
    padding-top: 0;
    margin-right: 0;
    opacity: 0.75;
}

.crumb big {
    font-size: 14px;
    font-weight: 600;
    color: #8ea0c1;
    padding: 0 5px;
}