/* ==========================================================================
   site_map.css — Sneh Shikshan Avam Manav Seva Sansthan (Rewa, MP)
   Site Map Page Styling
   ========================================================================== */

:root {
    --orange:        #ffa500;
    --orange-dark:   #e69500;
    --navy:          #1a2c4e;
    --navy-dark:     #0f1c34;
    --navy-light:    #2a3f66;
    --white:         #ffffff;
    --text-dark:     #222222;
    --text-muted:    #667085;
    --bg-soft:       #f7f9fc;
    --shadow-sm:     0 2px 10px rgba(0, 0, 0, 0.06);
    --shadow-md:     0 6px 24px rgba(0, 0, 0, 0.10);
    --shadow-lg:     0 12px 40px rgba(0, 0, 0, 0.15);
    --radius:        14px;
}

/* -------------------- Utility -------------------- */
.section-pad { padding: 70px 0; }

.section-tag {
    display: inline-block;
    background: rgba(255, 165, 0, 0.15);
    color: var(--orange-dark);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 14px;
    line-height: 1.25;
}

.section-sub {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-head { margin-bottom: 40px; }

/* -------------------- Buttons -------------------- */
.btn-brand {
    background: var(--orange);
    color: var(--white) !important;
    font-weight: 700;
    border: 2px solid var(--orange);
    padding: 10px 26px;
    border-radius: 50px;
    font-size: 14.5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
}

.btn-brand:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 44, 78, 0.3);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: var(--white);
    font-weight: 700;
    padding: 10px 26px;
    border-radius: 50px;
    font-size: 14.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

/* ==========================================================================
   PAGE HERO (shared)
   ========================================================================== */
.page-hero {
    position: relative;
    min-height: 280px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px 0;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 30%, rgba(255, 165, 0, 0.20), transparent 45%),
        radial-gradient(circle at 85% 70%, rgba(255, 165, 0, 0.15), transparent 45%);
    pointer-events: none;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg,
            rgba(255,255,255,0.03) 0 20px,
            transparent 20px 40px);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.page-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    margin: 0 0 14px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.page-breadcrumb {
    justify-content: center;
    margin: 0;
    background: transparent;
    padding: 0;
}

.page-breadcrumb .breadcrumb-item,
.page-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.page-breadcrumb .breadcrumb-item a:hover { color: var(--orange); }
.page-breadcrumb .breadcrumb-item.active { color: var(--orange); font-weight: 700; }

.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    line-height: 1;
}

.page-breadcrumb i { margin-right: 4px; }

/* ==========================================================================
   STATS STRIP
   ========================================================================== */
.stats-strip {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 35px 0;
    position: relative;
    overflow: hidden;
}

.stats-strip::before {
    content: "";
    position: absolute;
    top: -50px; right: -80px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255, 165, 0, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.stats-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    z-index: 1;
    padding: 10px;
    transition: transform 0.3s ease;
}

.stats-item:hover { transform: translateY(-3px); }

.stats-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: var(--white);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.35);
}

.stats-info { text-align: left; }

.stats-info h3 {
    font-size: 30px;
    font-weight: 800;
    color: var(--white);
    margin: 0 0 2px;
    line-height: 1;
}

.stats-info p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   SITEMAP SECTION
   ========================================================================== */
.sitemap-section { background: var(--bg-soft); }

/* -------------------- Search Bar -------------------- */
.sm-search-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    background: var(--white);
    padding: 14px 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.sm-search {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-soft);
    border: 1.5px solid #e5e9f0;
    border-radius: 50px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    position: relative;
}

.sm-search:focus-within {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(255, 165, 0, 0.15);
    background: var(--white);
}

.sm-search-icon {
    color: var(--orange);
    font-size: 17px;
    flex-shrink: 0;
}

.sm-search-input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 15px;
    color: var(--navy);
    padding: 2px 0;
}

.sm-search-input::placeholder { color: #9ca3af; }

.sm-search-clear {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    padding: 4px;
    cursor: pointer;
    display: none;
    line-height: 1;
    border-radius: 50%;
    transition: all 0.25s ease;
}

.sm-search-clear:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.sm-search-clear.visible { display: inline-flex; }

.sm-search-count {
    color: var(--text-muted);
    font-size: 13.5px;
    white-space: nowrap;
    padding: 8px 16px;
    background: var(--bg-soft);
    border-radius: 30px;
    font-weight: 600;
}

.sm-search-count b { color: var(--orange-dark); font-weight: 800; }

/* ==========================================================================
   SITEMAP GRID
   ========================================================================== */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* -------------------- Card -------------------- */
.sm-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--card-color, var(--orange));
    height: 100%;
}

.sm-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

/* Card head */
.sm-card-head {
    padding: 22px 22px 18px;
    background: linear-gradient(135deg,
        rgba(255, 165, 0, 0.04) 0%,
        rgba(255, 255, 255, 0) 100%);
    border-bottom: 1px solid #eef1f6;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
}

.sm-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--card-color, var(--orange));
    color: var(--white);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.35s ease;
}

.sm-card:hover .sm-card-icon {
    transform: rotate(-8deg) scale(1.05);
}

.sm-card-info { flex: 1; min-width: 0; }

.sm-card-info h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 4px;
    line-height: 1.3;
}

.sm-card-info p {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.sm-card-count {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(26, 44, 78, 0.08);
    color: var(--navy);
    font-size: 11.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    min-width: 26px;
    text-align: center;
}

/* Card list */
.sm-card-list {
    list-style: none;
    padding: 8px 12px 12px;
    margin: 0;
    flex: 1;
}

.sm-link {
    margin: 0;
    transition: all 0.25s ease;
}

.sm-link.hidden { display: none; }

.sm-link-anchor {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
}

.sm-link-anchor:hover {
    background: rgba(255, 165, 0, 0.08);
}

.sm-link-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bg-soft);
    color: var(--orange);
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.sm-link-anchor:hover .sm-link-icon {
    background: var(--orange);
    color: var(--white);
    transform: scale(1.08);
}

.sm-link-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sm-link-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    transition: color 0.25s ease;
}

.sm-link-anchor:hover .sm-link-label { color: var(--orange-dark); }

.sm-link-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sm-link-arrow {
    color: var(--text-muted);
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-4px);
}

.sm-link-anchor:hover .sm-link-arrow {
    color: var(--orange);
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   NO RESULTS
   ========================================================================== */
.sm-no-results {
    text-align: center;
    padding: 70px 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-top: 30px;
}

.sm-no-results i {
    font-size: 60px;
    color: #cbd5e1;
    margin-bottom: 18px;
    display: inline-block;
}

.sm-no-results h5 {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.sm-no-results p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 20px;
}

/* ==========================================================================
   NOTE
   ========================================================================== */
.list-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: rgba(255, 165, 0, 0.08);
    border-left: 4px solid var(--orange);
    border-radius: 10px;
    padding: 14px 20px;
    margin-top: 30px;
    font-size: 13.5px;
    color: #7c5b19;
    line-height: 1.6;
}

.list-note i {
    color: var(--orange);
    font-size: 17px;
    flex-shrink: 0;
    margin-top: 2px;
}

.list-note a {
    color: var(--orange-dark);
    font-weight: 700;
    text-decoration: none;
}

.list-note a:hover { text-decoration: underline; }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 55px 0;
    color: var(--white);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-text h2 {
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--white);
}

.cta-text p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991.98px) {

    .section-pad { padding: 50px 0; }
    .section-head { margin-bottom: 30px; }

    .page-hero { min-height: 220px; padding: 40px 0; }

    .stats-icon { width: 52px; height: 52px; font-size: 22px; }
    .stats-info h3 { font-size: 24px; }
    .stats-info p { font-size: 11.5px; }

    .sitemap-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 18px;
    }

    .sm-card-head { padding: 18px 18px 14px; gap: 12px; }
    .sm-card-icon { width: 46px; height: 46px; font-size: 20px; border-radius: 10px; }
    .sm-card-info h3 { font-size: 15px; }

    .sm-link-icon { width: 34px; height: 34px; font-size: 15px; border-radius: 8px; }
    .sm-link-label { font-size: 13.5px; }
    .sm-link-desc { font-size: 11px; }

    .cta-inner { flex-direction: column; text-align: center; }
    .cta-buttons { justify-content: center; width: 100%; }
}

@media (max-width: 575.98px) {

    .section-pad { padding: 40px 0; }
    .section-title { font-size: 1.3rem; }
    .section-sub { font-size: 14px; margin-bottom: 26px; }

    .page-hero { min-height: 180px; padding: 30px 0; }
    .page-hero-title { font-size: 1.5rem; }

    .stats-item { gap: 10px; padding: 6px; }
    .stats-icon { width: 44px; height: 44px; font-size: 18px; }
    .stats-info h3 { font-size: 20px; }
    .stats-info p { font-size: 10.5px; }

    .sm-search-wrap { padding: 12px 14px; gap: 10px; }
    .sm-search { padding: 8px 14px; }
    .sm-search-input { font-size: 13.5px; }
    .sm-search-count { font-size: 12px; padding: 6px 12px; }

    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sm-card-head { padding: 16px 16px 12px; gap: 10px; }
    .sm-card-icon { width: 42px; height: 42px; font-size: 18px; border-radius: 10px; }
    .sm-card-info h3 { font-size: 14.5px; }
    .sm-card-info p { font-size: 11.5px; }
    .sm-card-count { font-size: 10.5px; padding: 2px 8px; top: 12px; right: 12px; }

    .sm-card-list { padding: 6px 10px 10px; }
    .sm-link-anchor { padding: 9px 10px; gap: 10px; }
    .sm-link-icon { width: 30px; height: 30px; font-size: 13px; border-radius: 7px; }
    .sm-link-label { font-size: 13px; }
    .sm-link-desc { font-size: 10.5px; }

    .list-note { font-size: 12.5px; padding: 12px 14px; }

    .sm-no-results { padding: 40px 18px; }
    .sm-no-results i { font-size: 42px; }
    .sm-no-results h5 { font-size: 16px; }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    .site-header,
    .topbar,
    .brandbar,
    .mainnav,
    .newsbar,
    .page-hero,
    .stats-strip,
    .sm-search-wrap,
    .cta-section,
    .list-note,
    .footer,
    footer,
    .sm-link-arrow {
        display: none !important;
    }

    body { padding-top: 0 !important; background: #fff !important; }
    .section-pad { padding: 10px 0 !important; }

    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .sm-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
    }

    .sm-link-anchor { padding: 6px 8px; }
    .sm-link-desc { display: block; }
}