
/* =========================================
   BMB2027 - Updates Component
   Scoped to Updates elements only.
========================================= */

/* Floating Updates button */
.updates-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1040;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 12px 18px;
    border: 0;
    border-radius: 999px;

    background: #176b61;
    color: #fff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    cursor: pointer;

    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.updates-btn:hover {
    background: #12574f;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.updates-btn:focus-visible {
    outline: 3px solid rgba(23, 107, 97, 0.35);
    outline-offset: 3px;
}

.updates-btn .bi {
    font-size: 17px;
}

.updates-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 22px;
    min-height: 22px;
    padding: 2px 6px;

    border-radius: 999px;
    background: #dc3545;
    color: #fff;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

/* Updates panel */
#updatesCanvas {
    z-index: 1055;
    width: min(100%, 460px);
}

#updatesCanvas .offcanvas-header {
    border-bottom: 1px solid #e9ecef;
}

#updatesCanvas .offcanvas-title {
    font-weight: 700;
}

#updatesCanvas .offcanvas-body {
    overflow-y: auto;
}

/* Filter tabs */
#updatesCanvas .update-tabs {
    gap: 6px;
}

#updatesCanvas .update-tabs .nav-link {
    border: 1px solid #dee2e6;
    border-radius: 999px;

    background: #fff;
    color: #495057;

    font-size: 13px;
    font-weight: 600;
}

#updatesCanvas .update-tabs .nav-link.active {
    border-color: #176b61;
    background: #176b61;
    color: #fff;
}

/* Individual update item */
#updatesCanvas .update-item {
    display: block;
    margin-bottom: 16px;
}

/* Used by the Updates filter JavaScript */
#updatesCanvas .update-item.hide {
    display: none !important;
}

#updatesCanvas .update-card {
    padding: 16px;
    border: 1px solid #e9ecef;
    border-radius: 14px;

    background: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);

    overflow-wrap: anywhere;
}

#updatesCanvas .update-card h6 {
    color: #212529;
    line-height: 1.5;
}

#updatesCanvas .update-card p {
    line-height: 1.65;
    white-space: normal;
}

#updatesCanvas .update-card .badge {
    white-space: normal;
}

#updatesCanvas .update-card a {
    text-decoration: none;
}

/* Responsive layout */
@media (max-width: 576px) {
    .updates-btn {
        right: 14px;
        bottom: 14px;
        gap: 8px;
        padding: 11px 14px;
    }

    #updatesCanvas {
        width: 100%;
    }

    #updatesCanvas .update-card {
        padding: 13px;
    }
}



/* ================================================
   BMB2027 SECRETARIAT
   Fix contact information layout on live website
================================================ */

/* Make contact card fill the available row */
.secretariat-contact-card {
    width: 100%;
    box-sizing: border-box;
}

/* Center card title */
.secretariat-contact-card h3 {
    text-align: center !important;
    margin-bottom: 35px;
}

/* Arrange contact items vertically */
.secretariat-contact-card .contact-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    height: 100%;
    margin-bottom: 0;
    padding: 20px 12px;
}

/* Move icons above the text */
.secretariat-contact-card .contact-item i {
    display: block;
    font-size: 1.8rem;
    margin: 0 0 15px 0 !important;
}

/* Center contact headings */
.secretariat-contact-card .contact-item h6 {
    text-align: center !important;
    margin-bottom: 10px;
}

/* Center contact descriptions */
.secretariat-contact-card .contact-item p {
    text-align: center !important;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

/* Email */
.secretariat-contact-card .contact-item a {
    color: inherit;
    text-decoration: none;
}

.secretariat-contact-card .contact-item a:hover {
    text-decoration: underline;
}

/* Tablet and mobile */
@media (max-width: 767.98px) {
    .secretariat-contact-card {
        padding: 30px 20px;
    }

    .secretariat-contact-card h3 {
        margin-bottom: 20px;
    }
}

/* Small mobile */
@media (max-width: 575.98px) {
    .secretariat-contact-card {
        padding: 25px 15px;
    }
}
