
/* =====================================
   ULB ARUNACHAL PRADESH - SITEMAP
===================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f5f7fa;
    color: #293747;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.sitemap-container {
    width: 96%;
    max-width: 1500px;
    margin: 35px auto;
    padding: 0 15px;
}

/* PAGE HEADING */

.page-heading {
    text-align: center;
    margin-bottom: 35px;
}

.page-heading h1 {
    margin: 0 0 8px;
    color: #173f6b;
    font-size: 30px;
}

.page-heading p {
    margin: 0;
    color: #657487;
}

/* ROOT NODE */

.sitemap-tree {
    padding-top: 5px;
}

.root-node {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 65px;
}

.root-node a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 280px;
    padding: 17px 25px;
    color: #fff;
    background: #173f6b;
    border: 1px solid #173f6b;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 12px rgba(23, 63, 107, 0.12);
}

.root-node strong {
    font-size: 19px;
}

.root-node span {
    font-size: 13px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ROOT CONNECTOR */

.root-node::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    height: 33px;
    width: 2px;
    background: #9cabbc;
}

/* FIVE MAIN BRANCHES */

.main-branches {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

/* HORIZONTAL CONNECTOR */

.main-branches::before {
    content: "";
    position: absolute;
    top: -32px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #9cabbc;
}

/* INDIVIDUAL BRANCH */

.branch {
    position: relative;
    min-width: 0;
    background: #fff;
    border: 1px solid #dce3eb;
    border-radius: 6px;
    overflow: visible;
    box-shadow: 0 3px 10px rgba(35, 55, 75, 0.04);
}

/* CONNECTOR TO EACH BRANCH */

.branch::before {
    content: "";
    position: absolute;
    top: -33px;
    left: 50%;
    height: 33px;
    width: 2px;
    background: #9cabbc;
}

.branch-heading {
    display: flex;
    align-items: center;
    min-height: 66px;
    margin: 0;
    padding: 14px 12px;
    background: #d2dfff;
    color: #162F6A;
    border-bottom: 2px solid #162f6a;
    border-radius: 5px 5px 0 0;
    font-size: 16px;
    line-height: 1.4;
}

/* LINKS */

.branch-links {
    list-style: none;
    padding: 8px;
    margin: 0;
}

.branch-links li {
    margin: 0;
    padding: 0;
}

.branch-links a {
    display: block;
    padding: 10px 9px;
    color: #34495e;
    text-decoration: none;
    border-bottom: 1px solid #edf0f4;
    border-radius: 3px;
    overflow-wrap: anywhere;
    transition: background 0.2s, color 0.2s;
}

.branch-links li:last-child a {
    border-bottom: none;
}

.branch-links a:hover {
    background: #d2dfff;
    color: #173f6b;
    text-decoration: underline;
}

a:focus-visible {
    outline: 3px solid #d49a27;
    outline-offset: 2px;
}

/* FOOTER BRANCH */

.footer-branch {
    position: relative;
    margin-top: 65px;
    padding: 20px;
    background: #fff;
    border: 1px solid #dce3eb;
    border-radius: 6px;
}

/* Connector from main navigation to footer */

.footer-branch::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    height: 34px;
    width: 2px;
    background: #9cabbc;
}

.footer-heading {
    margin: 0 0 18px;
    padding: 12px 15px;
    background: #173f6b;
    color: #fff;
    border-radius: 4px;
    font-size: 18px;
    text-align: center;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.footer-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 15px;
    color: #294967;
    background: #f7f9fc;
    border: 1px solid #dce3eb;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.footer-links a:hover {
    background: #d2dfff;
    border-color: #9aafc7;
}

/* PAGE BOTTOM */

.last-updated {
    margin: 20px 0 0;
    color: #718096;
    font-size: 12px;
    text-align: center;
}

/* RESPONSIVE TABLET */

@media (max-width: 1100px) {
    .main-branches {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 35px 16px;
    }

    .main-branches::before {
        display: none;
    }

    .branch::before {
        display: none;
    }

    .root-node {
        margin-bottom: 30px;
    }

    .root-node::after {
        display: none;
    }

    .footer-branch {
        margin-top: 35px;
    }
}

/* RESPONSIVE MOBILE */

@media (max-width: 650px) {
    .sitemap-container {
        width: 100%;
        margin: 25px auto;
        padding: 0 12px;
    }

    .page-heading h1 {
        font-size: 25px;
    }

    .root-node a {
        min-width: 0;
        width: 100%;
    }

    .main-branches {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .branch-heading {
        min-height: 60px;
        padding: 12px 10px;
        font-size: 14px;
    }

    .branch-links {
        padding: 6px;
    }

    .branch-links a {
        padding: 9px 7px;
        font-size: 13px;
    }

    .footer-branch {
        padding: 12px;
    }

    .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .footer-links a {
        padding: 10px;
        font-size: 13px;
    }
}

/* VERY SMALL SCREENS */

@media (max-width: 380px) {
    .main-branches {
        grid-template-columns: 1fr;
    }

    .branch-heading {
        min-height: auto;
    }
}

/* PRINT */

@media print {
    body {
        background: #fff;
    }

    .sitemap-container {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .main-branches {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 8px;
    }

    .branch,
    .footer-branch,
    .root-node a {
        break-inside: avoid;
        box-shadow: none;
    }
}
