/* =========================================================
   ANNOUNCEMENTS BAR
========================================================= */

:root {
    --header-blue: #162f6a;
    --header-text: #170d0d;
    --header-border: #e5e5e5;
    --header-background: #ffffff;

    /* CHANGE SEARCH BOX WIDTH HERE */
}
.announcements-bar {
    background: #ebeaea;
    border-bottom: 1px solid #D0D0D0;
    padding: 15px 0;
}

.announcements-inner {
    max-width: 1630px;
    width: 98%;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 25px;
}

.announcements-inner h2 {
    flex-shrink: 0;
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    color: #171717;
    white-space: nowrap;
}

.announcements-inner h2 i {
    color: var(--header-blue);
    font-size: 21px;
    margin-left: 5px;
}

/* Scrolling ticker */

.announcement-ticker {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.announcement-track {
    display: flex;
    width: max-content;
    animation: announcement-scroll 20s linear infinite;
}

.announcement-track a {
    flex-shrink: 0;
    width: max-content;
    padding-right: 100px;
    color: #252525;
    text-decoration: none;
    font-size: 18px;
}

.announcement-track a:hover {
    color: var(--header-blue);
}


/* Pause ticker on hover */

.announcement-ticker:hover .announcement-track {
    animation-play-state: paused;
}

.announcement-toggle {
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: var(--header-blue);
    font-size: 18px;
    cursor: pointer;
}

.announcement-toggle:hover {
    color: var(--header-blue);
}

/* Right-to-left movement */

@keyframes announcement-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}
/* Secretariat Administration Banner */
.department-banner {
    width: 100%;
    background-color: #162f6a;
    overflow: hidden;
}

.banner-container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.banner-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Responsive layout */
@media (max-width: 768px) {
    .banner-image {
        width: 100%;
        height: auto;
    }
}
/* ==========================================
   DOCUMENTS AND IMPORTANT LINKS SECTION
========================================== */

.documents-audience-section {
    width: 100%;
    padding: 35px 5.5% 45px;
    background: #ffffff;
    box-sizing: border-box;
}

.documents-audience-container {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 40px;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    align-items: stretch;
}

/* ==========================================
   SECTION HEADINGS
========================================== */

.documents-heading,
.important-links-heading {
    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 45px;
    margin: 0 0 25px;

    color: #162f6a;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.3;
}

.documents-heading-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.important-links-heading > i {
    font-size: 40px;
    flex-shrink: 0;
}

/* ==========================================
   DOCUMENTS GRID
========================================== */

.documents-column,
.important-links-column {
    min-width: 0;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    width: 100%;
}

/* INDIVIDUAL DOCUMENT CARD */

.document-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    min-width: 0;
    height: 154px;
    padding: 15px;

    background: #ffffff;
    border: 1px solid #d2dfff;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);

    color: #162f6a;
    text-align: center;
    text-decoration: none;

    box-sizing: border-box;
    transition: background-color 0.2s ease,
                border-color 0.2s ease,
                transform 0.2s ease;
}

.document-card:hover {
    background: #d2dfff;
    border-color: #162f6a;
    transform: translateY(-2px);
}

.document-card-logo {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    object-fit: contain;
}

.document-card span {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
}

/* ==========================================
   DOCUMENTS VIEW MORE BUTTON
========================================== */

.documents-view-more {
    display: flex;
    justify-content: flex-end;
    margin-top: 13px;
}

.documents-view-btn,
.important-links-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-height: 42px;
    padding: 8px 13px;

    background: #ffffff;
    border: 1px solid #162f6a;
    border-radius: 3px;

    color: #162f6a;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;

    box-sizing: border-box;
    transition: background-color 0.2s ease,
                color 0.2s ease;
}

.documents-view-btn:hover,
.important-links-view-btn:hover {
    background: #162f6a;
    color: #ffffff;
}

/* ==========================================
   IMPORTANT LINKS
========================================== */

.important-links-list {
    max-height: 352px;
    padding-right: 7px;

    border-right: 5px solid #162f6a;

    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: thin;
    scrollbar-color: #162f6a #ffffff;
}

/* IMPORTANT LINKS SCROLLBAR */

.important-links-list::-webkit-scrollbar {
    width: 5px;
}

.important-links-list::-webkit-scrollbar-track {
    background: #ffffff;
}

.important-links-list::-webkit-scrollbar-thumb {
    background: #162f6a;
}

/* INDIVIDUAL IMPORTANT LINK */

.important-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    min-height: 59px;
    padding: 12px 8px 12px 0;

    border-bottom: 1px solid #e5e5e5;

    color: #211717;
    font-size: 18px;
    line-height: 1.4;
    text-decoration: none;

    box-sizing: border-box;
    transition: color 0.2s ease,
                background-color 0.2s ease;
}

.important-link:last-child {
    border-bottom: none;
}

.important-link span {
    flex: 1;
}

.important-link > i {
    flex-shrink: 0;
    color: #211717;
    font-size: 13px;
}

.important-link:hover {
    color: #162f6a;
    background: #d2dfff;
}

.important-link:hover > i {
    color: #162f6a;
}

/* ==========================================
   IMPORTANT LINKS VIEW ALL BUTTON
========================================== */

.important-links-view-all {
    display: flex;
    justify-content: flex-end;
    margin-top: 13px;
}

/* ==========================================
   MEDIUM SCREENS
========================================== */

@media (max-width: 1400px) {

    .documents-audience-container {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
        gap: 25px;
    }

    .documents-heading,
    .important-links-heading {
        font-size: 22px;
        gap: 9px;
    }

    .document-card {
        gap: 9px;
        height: 135px;
        padding: 10px;
    }

    .document-card-logo {
        width: 34px;
        height: 34px;
    }

    .document-card span {
        font-size: 17px;
    }

    .important-links-heading > i {
        font-size: 34px;
    }

    .important-link {
        font-size: 16px;
    }
}

/* ==========================================
   TABLETS
========================================== */

@media (max-width: 992px) {

    .documents-audience-section {
        padding: 30px 4%;
    }

    .documents-audience-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 35px;
    }

    .documents-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .document-card {
        height: 135px;
    }

    .important-links-list {
        max-height: 350px;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 576px) {

    .documents-audience-section {
        padding: 25px 15px;
    }

    .documents-audience-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .documents-heading,
    .important-links-heading {
        min-height: 35px;
        margin-bottom: 18px;
        font-size: 21px;
    }

    .documents-heading-logo {
        width: 38px;
        height: 38px;
    }

    .important-links-heading > i {
        font-size: 30px;
    }

    .documents-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .document-card {
        flex-direction: column;
        gap: 9px;
        height: 125px;
        padding: 12px 8px;
    }

    .document-card-logo {
        width: 35px;
        height: 35px;
    }

    .document-card span {
        font-size: 15px;
    }

    .documents-view-btn,
    .important-links-view-btn {
        min-height: 38px;
        padding: 7px 10px;
        font-size: 14px;
    }

    .important-link {
        min-height: 52px;
        font-size: 15px;
    }

    .important-links-list {
        max-height: 300px;
    }
}
/* ==========================================
   GOVERNMENT INITIATIVES / IMPORTANT LINKS
========================================== */

.government-links-section {
    width: 100%;
    padding: 30px 5%;
    background: #d2dfff;
    box-sizing: border-box;
}

/* CENTER THE LOGO CARDS */

.government-links-container {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

/* VIEWPORT */

.government-links-viewport {
    width: 100%;
    max-width: 1400px;
    overflow: hidden;
}

/* LOGO CARDS IN ONE CENTERED ROW */

.government-links-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    width: 100%;
}

/* INDIVIDUAL LOGO CARD */

.government-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 1 1 0;
    min-width: 0;
    max-width: 300px;
    height: 100px;
    padding: 15px;

    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);

    text-decoration: none;
    box-sizing: border-box;

    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

/* LOGO IMAGE */

.government-logo-card img {
    display: block;

    max-width: 100%;
    max-height: 70px;

    width: auto;
    height: auto;

    object-fit: contain;
}

/* HOVER EFFECT */

.government-logo-card:hover {
    border-color: #162f6a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.10);
}

/* HIDE NAVIGATION ARROWS */

.government-links-arrow {
    display: none !important;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 768px) {

    .government-links-section {
        padding: 25px 4%;
    }

    .government-links-track {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .government-logo-card {
        width: 100%;
        max-width: none;
        height: 95px;
    }

    .government-logo-card img {
        max-height: 62px;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 400px) {

    .government-links-track {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .government-logo-card {
        height: 85px;
    }

    .government-logo-card img {
        max-height: 55px;
    }
}
/* =========================================================
   BRANCH CARDS
========================================================= */

.branches-container {
    width: 80%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 30px 20px 50px;
}

.branches-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 19px;
}

.branch-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 303px;
    padding: 32px 40px 85px;
    border: 1px solid #B8C9F0;
    border-radius: 16px;
    background: #D2DFFF;
    box-sizing: border-box;
}

/* Reduce space between card heading and description */
.branch-card h3 {
    min-height: auto;
    margin-bottom: 8px;
    line-height: 1.3;
}

.branch-card p {
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Branches Grid */
.branches-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* Tablet */
@media (max-width: 991px) {
    .branches-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .branches-grid {
        grid-template-columns: 1fr !important;
        gap: 18px;
        width: 100%;
    }

    .branch-card {
        width: 100%;
        min-width: 0;
        min-height: auto;
        padding: 24px 22px 80px;
        box-sizing: border-box;
    }

    .branch-card h3 {
        min-height: auto;
        font-size: 19px;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    .branch-card p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 10px;
    }

    .branch-card li {
        font-size: 15px;
        line-height: 1.6;
    }

    .branch-arrow {
        bottom: 16px;
        left: 20px;
    }
}

/* Arrow button */

.branch-arrow {
    position: absolute;
    right: 40px;
    bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 53px;
    border-radius: 5px;
    background: #162F61;
    color: #D2DFFF;
    font-size: 28px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.branch-arrow:hover {
    background: #D2DFFF;
    color: #162F61;
    border: 1px solid #162F61;
}
/* =========================================================
   ORGANISATIONAL STRUCTURE
========================================================= */

.structure-container {
    padding-top: 35px;
    padding-bottom: 50px;
}

.structure-section {
    width: 100%;
}

.structure-heading {
    margin-bottom: 25px;
    color: var(--dark-red);
    font-size: 28px;
    font-weight: 600;
}

.structure-image-wrapper {
    width: 100%;
    padding: 20px;
    border: 1px solid #E5E5E5;
    border-radius: 14px;
    background: var(--white);
    text-align: center;
}

.structure-image {
    display: block;
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}
/* =========================================================
   RELATED LINKS CONTENT
========================================================= */

.related-links-main {
    padding: 52px 0 65px;
    background: var(--white);
}

.related-links-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

/* Individual link card */

.related-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    min-height: 98px;
    padding: 20px 40px;
    background: var(--white);
    border: 1px solid #d2dfff;
    border-radius: 16px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.related-link-card:hover {
    border-color: #d2dfff;
    box-shadow: 0 4px 14px rgba(119, 29, 29, 0.07);
}

.related-link-card h2 {
    margin: 0;
    color: #111111;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.5;
}

/* Visit Website button */

.visit-website-btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-width: 212px;
    min-height: 55px;
    padding: 13px 20px;
    color: #162f6a;
    background: #d2dfff;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.visit-website-btn i {
    font-size: 23px;
}

.visit-website-btn:hover {
    color: #d2dfff;
    background: #162f6a;
    border-color: #162f6a;
}

.visit-website-btn:focus-visible {
    outline: 3px solid #162f6a;
    outline-offset: 4px;
}
