/* ============================================
   SITEMAP PAGE - UNIQUE STYLES (smap- prefix)
   ============================================ */

/* ============================================
   HERO SECTION
   ============================================ */
.smap-hero {
    position: relative;
    min-height: 400px;
    background: linear-gradient(135deg, #0d2137 0%, #1a4a6e 50%, #0d2137 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 100px;
}

.smap-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    background-size: 50px 50px;
    opacity: 0.3;
}

.smap-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
}

.smap-hero-badge {
    display: inline-block;
    background: rgba(56, 173, 169, 0.2);
    border: 1px solid #38ada9;
    color: #38ada9;
    padding: 8px 20px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.smap-hero-badge i {
    margin-right: 8px;
}

.smap-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 15px 0;
}

.smap-hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.smap-hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.smap-hero-wave svg {
    width: 100%;
    height: 80px;
    fill: #f8f9fa;
}

/* ============================================
   MAIN CONTENT SECTION
   ============================================ */
.smap-main {
    background-color: #f8f9fa;
    padding: 60px 0 80px;
}

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

/* ============================================
   SECTION STYLES
   ============================================ */
.smap-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.smap-section:last-child {
    margin-bottom: 0;
}

.smap-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.smap-section-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ffffff;
    flex-shrink: 0;
}

.smap-icon-visual {
    background: linear-gradient(135deg, #38ada9, #2d8f8b);
}

.smap-icon-list {
    background: linear-gradient(135deg, #667eea, #5a67d8);
}

.smap-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #0d2137;
    margin: 0;
}

/* ============================================
   VISUAL TREE STRUCTURE
   ============================================ */
.smap-tree-wrapper {
    overflow-x: auto;
    padding: 20px 0;
}

.smap-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: fit-content;
}

/* Root Node */
.smap-tree-root {
    margin-bottom: 30px;
    position: relative;
}

.smap-tree-root::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    width: 2px;
    height: 30px;
    background: #38ada9;
}

.smap-node-root {
    background: linear-gradient(135deg, #38ada9, #2d8f8b);
    color: #ffffff !important;
    padding: 15px 30px;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56, 173, 169, 0.3);
}

.smap-node-root:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(56, 173, 169, 0.4);
}

/* Tree Levels */
.smap-tree-level {
    display: flex;
    justify-content: center;
    gap: 15px;
    position: relative;
    flex-wrap: wrap;
}

.smap-level-1 {
    padding-top: 20px;
}

.smap-level-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #38ada9;
}

/* Branches */
.smap-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.smap-level-1 > .smap-branch::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    width: 2px;
    height: 20px;
    background: #38ada9;
}

/* Nodes */
.smap-node {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.smap-node:hover {
    border-color: #38ada9;
    color: #38ada9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 173, 169, 0.2);
}

.smap-node i {
    color: #38ada9;
    font-size: 16px;
}

.smap-node-parent {
    background: #f0fffe;
    border-color: #38ada9;
}

/* Level 2 */
.smap-level-2 {
    margin-top: 25px;
    padding-top: 25px;
    gap: 12px;
}

.smap-level-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 25px;
    background: #38ada9;
    transform: translateX(-50%);
}

.smap-branch-parent > .smap-level-2::before {
    top: 0;
}

/* Level 3 */
.smap-level-3 {
    margin-top: 20px;
    padding-top: 20px;
    gap: 8px;
    flex-direction: column;
    align-items: center;
}

.smap-level-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 20px;
    background: #38ada9;
    transform: translateX(-50%);
}

.smap-node-leaf {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    padding: 10px 18px;
    font-size: 13px;
    border-radius: 8px;
}

.smap-node-leaf:hover {
    background: #38ada9;
    color: #ffffff;
    border-color: #38ada9;
}

/* ============================================
   DIRECTORY GRID
   ============================================ */
.smap-directory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.smap-directory-col {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
}

.smap-directory-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0d2137;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #38ada9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.smap-directory-heading i {
    color: #38ada9;
}

.smap-directory-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.smap-directory-list li {
    margin-bottom: 10px;
}

.smap-directory-list li:last-child {
    margin-bottom: 0;
}

.smap-directory-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #ffffff;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #555555;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.smap-directory-list a:hover {
    border-color: #38ada9;
    color: #38ada9;
    transform: translateX(5px);
}

.smap-directory-list a i {
    color: #38ada9;
    font-size: 12px;
}

/* ============================================
   RESPONSIVE - TABLET (max-width: 992px)
   ============================================ */
@media (max-width: 992px) {
    .smap-hero {
        min-height: 350px;
    }

    .smap-hero-title {
        font-size: 38px;
    }

    .smap-section {
        padding: 30px 25px;
    }

    .smap-section-title {
        font-size: 22px;
    }

    /* Directory Grid - 2 columns */
    .smap-directory-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Tree Structure - Adjust layout */
    .smap-tree-level {
        gap: 10px;
    }

    .smap-node {
        padding: 10px 15px;
        font-size: 13px;
    }

    .smap-node-root {
        padding: 12px 24px;
        font-size: 15px;
    }

    .smap-level-1 {
        flex-wrap: wrap;
        justify-content: center;
    }

    .smap-level-1::before {
        display: none;
    }

    .smap-level-1 > .smap-branch::before {
        display: none;
    }

    .smap-level-2 {
        flex-direction: column;
        align-items: center;
    }

    .smap-level-3 {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    .smap-hero {
        min-height: 300px;
        padding-top: 80px;
    }

    .smap-hero-title {
        font-size: 32px;
    }

    .smap-hero-subtitle {
        font-size: 16px;
    }

    .smap-hero-badge {
        font-size: 12px;
        padding: 6px 16px;
    }

    .smap-main {
        padding: 40px 0 60px;
    }

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

    .smap-section-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        margin-bottom: 25px;
        padding-bottom: 15px;
    }

    .smap-section-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .smap-section-title {
        font-size: 20px;
    }

    /* Directory Grid - 1 column */
    .smap-directory-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .smap-directory-col {
        padding: 20px;
    }

    .smap-directory-heading {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .smap-directory-list a {
        font-size: 13px;
        padding: 8px 10px;
    }

    /* Tree - Full vertical layout */
    .smap-tree {
        align-items: flex-start;
        width: 100%;
    }

    .smap-tree-root {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

    .smap-tree-root::after {
        bottom: -20px;
        height: 20px;
    }

    .smap-node-root {
        padding: 12px 20px;
        font-size: 14px;
    }

    .smap-tree-level {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
    }

    .smap-level-1 {
        padding-top: 10px;
        padding-left: 20px;
        border-left: 2px solid #38ada9;
        margin-left: 50%;
    }

    .smap-level-1::before {
        display: none;
    }

    .smap-branch {
        align-items: flex-start;
        padding: 10px 0;
        position: relative;
    }

    .smap-level-1 > .smap-branch::before {
        content: '';
        display: block;
        position: absolute;
        top: 50%;
        left: -20px;
        width: 20px;
        height: 2px;
        background: #38ada9;
        transform: translateY(-50%);
    }

    .smap-branch-parent {
        width: 100%;
    }

    .smap-node {
        font-size: 12px;
        padding: 10px 14px;
    }

    .smap-level-2 {
        margin-top: 10px;
        padding-top: 0;
        padding-left: 15px;
        border-left: 2px solid #38ada9;
        margin-left: 20px;
    }

    .smap-level-2::before {
        display: none;
    }

    .smap-level-2 > .smap-branch::before {
        content: '';
        display: block;
        position: absolute;
        top: 50%;
        left: -15px;
        width: 15px;
        height: 2px;
        background: #38ada9;
        transform: translateY(-50%);
    }

    .smap-level-3 {
        margin-top: 10px;
        padding-top: 0;
        padding-left: 15px;
        border-left: 2px solid #38ada9;
        margin-left: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .smap-level-3::before {
        display: none;
    }

    .smap-node-leaf {
        font-size: 11px;
        padding: 8px 12px;
        position: relative;
    }

    .smap-level-3 .smap-node-leaf::before {
        content: '';
        position: absolute;
        top: 50%;
        left: -15px;
        width: 15px;
        height: 2px;
        background: #38ada9;
        transform: translateY(-50%);
    }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    .smap-hero-title {
        font-size: 26px;
    }

    .smap-hero-subtitle {
        font-size: 14px;
    }

    .smap-container {
        padding: 0 15px;
    }

    .smap-section {
        padding: 20px 15px;
    }

    .smap-section-title {
        font-size: 18px;
    }

    .smap-level-1 {
        margin-left: 30px;
        padding-left: 15px;
    }

    .smap-level-1 > .smap-branch::before {
        left: -15px;
        width: 15px;
    }

    .smap-node {
        font-size: 11px;
        padding: 8px 12px;
    }

    .smap-node i {
        font-size: 14px;
    }

    .smap-node-root {
        font-size: 13px;
        padding: 10px 18px;
    }

    .smap-directory-col {
        padding: 15px;
    }

    .smap-directory-heading {
        font-size: 14px;
    }

    .smap-directory-list a {
        font-size: 12px;
    }
}
