/* ============================================
   DEPARTMENT PAGE
   Secretariat Administration Department
   Government of Meghalaya

   Primary: #162F61
   Light:   #D2DFFF
============================================ */

:root {
    --department-blue: #162F61;
    --department-light-blue: #D2DFFF;
    --department-white: #ffffff;
    --department-text: #26344d;
    --department-border: #c1cfee;
}

/* ============================================
   PAGE BANNER
============================================ */

.page-banner {
    position: relative;
    min-height: 250px;
    padding: 55px 0 80px;
    overflow: hidden;
    background: linear-gradient(
        115deg,
        #162F61 0%,
        #25477F 55%,
        #5279B8 100%
    );
    color: var(--department-white);
}

/* Decorative curved shapes */
.page-banner::before {
    content: "";
    position: absolute;
    width: 120%;
    height: 170px;
    left: -10%;
    bottom: -105px;
    background: rgba(210, 223, 255, 0.12);
    border-radius: 50% 50% 0 0;
    transform: rotate(-3deg);
}

.page-banner::after {
    content: "";
    position: absolute;
    width: 65%;
    height: 220px;
    right: -8%;
    top: -110px;
    background: rgba(210, 223, 255, 0.08);
    border-radius: 50%;
    transform: rotate(-12deg);
}

/* Banner content */
.page-banner .container {
    position: relative;
    z-index: 1;
}

/* ============================================
   BREADCRUMB
============================================ */

.breadcrumb-text {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--department-white);
}

.breadcrumb-text a {
    color: var(--department-white);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.breadcrumb-text a:hover {
    opacity: 0.75;
}

.breadcrumb-text span {
    color: var(--department-light-blue);
}

/* ============================================
   PAGE TITLE
============================================ */

#page-title {
    margin: 0;
    color: var(--department-white);
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* ============================================
   DEPARTMENT NAVIGATION CONTAINER
============================================ */

.department-container {
    position: relative;
    z-index: 5;
    margin-top: -50px;
    margin-bottom: 35px;
}

/* ============================================
   DEPARTMENT NAVIGATION BAR
============================================ */

.department-nav {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    min-height: 83px;
    padding: 12px 24px;
    background: var(--department-blue);
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(22, 47, 97, 0.12);
}

/* Navigation links */
.department-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 13px;
    color: var(--department-white);
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color 0.25s ease,
        background-color 0.25s ease;
    border-radius: 7px;
}

.department-tab:hover {
    color: var(--department-light-blue);
    background-color: rgba(210, 223, 255, 0.10);
}

.department-tab.active {
    color: var(--department-white);
    font-weight: 700;
}

/* ============================================
   MOVING MENU INDICATOR
============================================ */

.menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 48px;
    margin-right: 5px;
    color: var(--department-light-blue);
    font-size: 31px;
    line-height: 1;
    cursor: grab;
    user-select: none;
}

/* ============================================
   MAIN CONTENT CONTAINER
============================================ */

.content-container {
    position: relative;
    margin-top: 0;
    margin-bottom: 50px;
}

/* Content panel */
.tab-content-panel {
    display: none;
    padding: 35px 40px;
    background: var(--department-white);
    border: 1px solid var(--department-border);
    border-top: 5px solid var(--department-blue);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(22, 47, 97, 0.07);
}

.tab-content-panel.active {
    display: block;
}

/* ============================================
   CONTENT HEADINGS
============================================ */

.tab-content-panel h2 {
    position: relative;
    margin: 0 0 22px;
    padding-bottom: 13px;
    color: var(--department-blue);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
}

.tab-content-panel h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 65px;
    height: 4px;
    background: var(--department-light-blue);
    border-radius: 5px;
}

/* ============================================
   PARAGRAPHS
============================================ */

.tab-content-panel p {
    margin-bottom: 20px;
    color: var(--department-text);
    font-size: 16px;
    line-height: 1.9;
    text-align: justify;
}

/* ============================================
   BRANCH LIST
============================================ */

.tab-content-panel ol {
    margin: 10px 0 10px;
    padding-left: 25px;
    color: var(--department-text);
}

.tab-content-panel ol li {
    margin-bottom: 10px;
    padding: 10px 14px;
    background: #f4f7ff;
    border-left: 4px solid var(--department-blue);
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.6;
}

.tab-content-panel ol li::marker {
    color: var(--department-blue);
    font-weight: 700;
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */

@media (max-width: 991px) {

    .page-banner {
        min-height: 220px;
        padding: 45px 0 75px;
    }

    .department-container {
        margin-top: -45px;
    }

    .department-nav {
        padding: 12px 16px;
        gap: 3px;
    }

    .department-tab {
        padding: 9px 10px;
        font-size: 15px;
    }

    .menu-icon {
        width: 32px;
        margin-right: 3px;
    }

    .tab-content-panel {
        padding: 28px;
    }
}

@media (max-width: 767px) {

    .page-banner {
        min-height: 190px;
        padding: 35px 0 65px;
    }

    .breadcrumb-text {
        font-size: 14px;
    }

    #page-title {
        font-size: 32px;
    }

    .department-container {
        margin-top: -35px;
        margin-bottom: 25px;
    }

    .department-nav {
        align-items: stretch;
        min-height: auto;
        padding: 12px;
        border-radius: 12px;
    }

    .menu-icon {
        width: 32px;
        min-height: 42px;
        height: auto;
    }

    .department-tab {
        flex: 1 1 auto;
        justify-content: center;
        min-height: 42px;
        padding: 8px 10px;
        font-size: 14px;
        white-space: normal;
        text-align: center;
    }

    .content-container {
        margin-bottom: 30px;
    }

    .tab-content-panel {
        padding: 22px 18px;
    }

    .tab-content-panel h2 {
        font-size: 24px;
    }

    .tab-content-panel p {
        font-size: 15px;
        line-height: 1.8;
    }

    .tab-content-panel ol li {
        font-size: 15px;
    }
}

@media (max-width: 480px) {

    .department-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .menu-icon {
        align-self: flex-start;
        height: 35px;
    }

    .department-tab {
        justify-content: flex-start;
        text-align: left;
    }

    .tab-content-panel {
        padding: 20px 15px;
    }
}