/* ============================================
   BRANCH DETAILS PAGE
============================================ */

:root {
    --branch-blue: #162F61;
    --branch-light-blue: #D2DFFF;
    --branch-text: #171717;
    --branch-white: #FFFFFF;
    --branch-border: #D8E1F5;
}

/* ============================================
   PAGE BANNER
============================================ */

.branch-page-banner {
    position: relative;
    padding: 35px 0 65px;
    background: linear-gradient(
        115deg,
        #162F61,
        #31548B,
        #5279B8
    );
    color: var(--branch-white);
}

.branch-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 15px;
}

.branch-breadcrumb a {
    color: var(--branch-white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.branch-breadcrumb span {
    color: var(--branch-light-blue);
}

.branch-page-banner h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
}

/* ============================================
   BRANCH NAVIGATION CONTAINER
============================================ */

.branch-navigation-container {
    position: relative;
    z-index: 5;
    margin-top: -50px;
    margin-bottom: 40px;
}

/* Navigation bar */

.branch-navigation {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 5px;
    min-height: 82px;
    padding: 15px 20px;
    overflow-x: auto;
    overflow-y: hidden;
    background: var(--branch-blue);
    border-radius: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--branch-light-blue) var(--branch-blue);
}

/* Home button */

.branch-nav-home {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-right: 5px;
    border-radius: 5px;
    background: var(--branch-light-blue);
    color: var(--branch-blue);
    text-decoration: none;
}

/* Branch navigation links */

.branch-nav-link {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 45px;
    padding: 10px 12px;
    color: var(--branch-white);
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* Remove hover effects completely */

.branch-nav-link:hover {
    color: var(--branch-white);
    background: transparent;
    text-decoration: none;
}

/* Selected branch link */

.branch-nav-link.active {
    color: var(--branch-white);
    background: transparent;
    font-weight: 700;
}

/* Prevent hover effects on the selected link */

.branch-nav-link.active:hover {
    color: var(--branch-white);
    background: transparent;
}

/* ============================================
   MOVING MENU INDICATOR
============================================ */

.branch-navigation .menu-icon {
    display: inline-flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 40px;
    margin-right: 3px;
    padding: 0;
    color: var(--branch-light-blue);
    font-family: Arial, sans-serif;
    font-size: 30px;
    font-weight: bold;
    line-height: 1;
    visibility: visible;
    opacity: 1;
    pointer-events: none;
    transition: none;
}

/* ============================================
   MAIN TWO-COLUMN LAYOUT
============================================ */

.branch-details-container {
    display: grid;
    grid-template-columns: minmax(280px, 32%) minmax(0, 1fr);
    align-items: start;
    gap: 30px;
    margin-top: 0;
    margin-bottom: 60px;
}

/* ============================================
   LEFT TITLE CARD
============================================ */

.branch-title-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 188px;
    padding: 30px;
    background: var(--branch-light-blue);
    border: 1px solid var(--branch-border);
    border-radius: 18px;
    text-align: center;
}

.branch-title-card h2 {
    margin: 0;
    color: var(--branch-blue);
    font-size: 27px;
    font-weight: 500;
    line-height: 1.5;
}

/* ============================================
   RIGHT CONTENT
============================================ */

.branch-information {
    min-width: 0;
    color: var(--branch-text);
}

/* Content paragraphs */

.branch-information p {
    margin: 0 0 25px;
    color: var(--branch-text);
    font-size: 17px;
    line-height: 1.9;
    text-align: justify;
}

/* Content headings */

.branch-information h2 {
    margin: 25px 0 18px;
    color: var(--branch-blue);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.4;
}

/* Numbered function list */

.branch-functions-list {
    margin: 0;
    padding-left: 25px;
    color: var(--branch-text);
    font-size: 17px;
    line-height: 1.8;
}

.branch-functions-list li {
    padding-left: 4px;
    margin-bottom: 10px;
}

.branch-functions-list li::marker {
    color: var(--branch-blue);
    font-weight: 700;
}

.branch-functions-list strong {
    color: var(--branch-blue);
    font-weight: 700;
}

/* Audit list */

.audit-list {
    margin: 0;
    padding-left: 25px;
    color: var(--branch-text);
    font-size: 17px;
    line-height: 1.8;
}

.audit-list li {
    padding-left: 2px;
    margin-bottom: 3px;
}

.audit-list strong {
    color: var(--branch-blue);
    font-weight: 700;
}

/* ============================================
   RESPONSIVE DESIGN: TABLETS
============================================ */

@media (max-width: 991px) {

    .branch-navigation-container {
        margin-bottom: 30px;
    }

    .branch-navigation {
        min-height: 70px;
        padding: 12px;
    }

    .branch-nav-link {
        min-height: 42px;
        padding: 9px 10px;
        font-size: 14px;
    }

    .branch-navigation .menu-icon {
        flex-basis: 26px;
        width: 26px;
        height: 36px;
        margin-right: 2px;
        font-size: 26px;
    }

    .branch-details-container {
        grid-template-columns: minmax(220px, 30%) minmax(0, 1fr);
        gap: 22px;
    }

    .branch-title-card {
        min-height: 160px;
        padding: 22px;
    }

    .branch-title-card h2 {
        font-size: 23px;
    }

    .branch-information p,
    .branch-functions-list,
    .audit-list {
        font-size: 15px;
    }

    .branch-information h2 {
        font-size: 23px;
    }
}

/* ============================================
   RESPONSIVE DESIGN: MOBILE
============================================ */

@media (max-width: 767px) {

    .branch-page-banner {
        padding: 30px 0 55px;
    }

    .branch-page-banner h1 {
        font-size: 30px;
    }

    .branch-navigation-container {
        margin-top: -35px;
    }

    .branch-navigation {
        min-height: 65px;
        padding: 10px;
        border-radius: 11px;
    }

    .branch-nav-home {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .branch-nav-link {
        min-height: 40px;
        padding: 8px 10px;
        font-size: 13px;
    }

    .branch-navigation .menu-icon {
        flex-basis: 23px;
        width: 23px;
        height: 34px;
        margin-right: 0;
        font-size: 23px;
    }

    .branch-details-container {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-bottom: 35px;
    }

    .branch-title-card {
        min-height: 120px;
        padding: 22px;
    }

    .branch-title-card h2 {
        font-size: 24px;
    }

    .branch-information p {
        text-align: left;
    }

    .branch-information h2 {
        margin-top: 20px;
        font-size: 22px;
    }

    .branch-functions-list,
    .audit-list {
        padding-left: 22px;
    }
}