.page-section {
    padding: 2rem 0;
}


.feedback-img{
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

#mainNav {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background-color: #0d1230;
    transition: background-color 0.2s ease;
    max-height: unset;


}


#mainNav .navbar-brand {
    /* font-family: 'latoregular'; */
    font-family:
        "Merriweather Sans",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        "Noto Sans",
        sans-serif,
        "Apple Color Emoji",
        "Segoe UI Emoji",
        "Segoe UI Symbol",
        "Noto Color Emoji";
    font-weight: 700;
    color: #212529;
}

#mainNav .navbar-nav .nav-item .nav-link {
    /* color: #6c757d; */
    color: #fff;
    font-family: "Montserrat", sans-serif;
    /* font-family: 'latoregular'; */
    font-weight: 700;
    font-size: 1.15rem;
    padding: 0.75rem 0;
}

#mainNav .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-nav .nav-item .nav-link:active {
    color: #94490e;
}

#mainNav .navbar-nav .nav-item .nav-link.active {
    color: #94490e !important;
}

#mainNav .img-main {
    width: clamp(140px, 15vw, 200px);
    filter: brightness(2.8);

}

#mainNav .navbar-toggler {
    outline: transparent !important;

}



@media (min-width: 1200px) {
    #mainNav .img-main {
        width: clamp(150px, 15vw, 200px) !important;
        filter: brightness(0.6);
    }

    #mainNav.navbar-scrolled .img-main {
        filter: brightness(2.8);
    }

    #mainNav {
        box-shadow: none;
        background-color: transparent;
    }

    #mainNav .navbar-brand {
        color: rgba(255, 255, 255, 0.7);
    }

    #mainNav .navbar-brand:hover {
        color: #fff;
    }

    #mainNav .navbar-nav .nav-item .nav-link {
        color: #212529;
        padding: 0 1rem;
    }

    #mainNav .navbar-nav .nav-item .nav-link:hover {
        color: #94490e;
    }

    #mainNav .navbar-nav .nav-item:last-child .nav-link {
        padding-right: 0;
    }

    #mainNav.navbar-scrolled {
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        background-color: #0d1230;
        position: cover !important;
        top: 0 !important;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    #mainNav.navbar-scrolled .navbar-nav .nav-item .nav-link {
        color: #fff !important;
    }

    #mainNav.navbar-scrolled .navbar-brand {
        color: #212529;
    }

    #mainNav.navbar-scrolled .navbar-brand:hover {
        color: #94490e;
    }

    #mainNav.navbar-scrolled .navbar-nav .nav-item .nav-link {
        color: #212529;
    }

    #mainNav.navbar-scrolled .navbar-nav .nav-item .nav-link:hover {
        color: #94490e;
    }
}


header.masthead.intro {
    min-height: 100vh;
    padding-top: 10rem;
    padding-bottom: calc(10rem - 72px);
    display: flex;
    justify-content: center;
    align-items: center;
}

header.masthead {
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: cover;
}

header.masthead.section-header {
    background-image: linear-gradient(rgba(230, 210, 180, 0.75), rgba(245, 235, 220, 0.08)), var(--masthead-bg) !important;
    min-height: 20rem;
    filter: brightness(1.1);
}

header.masthead h1 {
    font-size: 2.25rem !important;
    margin-top: 10%;
}

@media (max-width: 992px) {
    header.masthead {
        min-height: 22rem !important;
        padding-top: 7rem;
        display: flex;
        flex-direction: column;
        justify-content: end;
        padding-bottom: 2.5rem;
    }

    header.masthead p {
        font-size: 1.15rem;
    }

    header.masthead .overlay h1 {
        font-size: 3rem !important;
    }
    header.masthead h1 {
        font-size: 3rem !important;
    }
}

@media (max-width: 576px) {
    header.masthead h1 {
        font-size: 2.25rem !important;
        

    }
}


@media (min-width: 992px) {
    header.masthead {
        min-height: 21rem;
        padding-top: 72px;
        padding-bottom: 0;
    }


    header.masthead p {
        font-size: 1.15rem;
    }

    header.masthead h1 {
        font-size: 3rem !important;
    }
}

@media (min-width: 1200px) {
    header.masthead h1 {
        font-size: 3.5rem;
    }
}

#portfolio .container {
    max-width: 1920px;
}

#portfolio .container .portfolio-box {
    position: relative;
    display: block;
}

#portfolio .container .portfolio-box .portfolio-box-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0;
    text-align: center;
    opacity: 0;
    color: #fff;
    background: rgba(244, 98, 58, 0.9);
    transition: opacity 0.25s ease;
    text-align: center;
}

#portfolio .container .portfolio-box .portfolio-box-caption .project-category {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

#portfolio .container .portfolio-box .portfolio-box-caption .project-name {
    font-size: 1.2rem;
}

#portfolio .container .portfolio-box:hover .portfolio-box-caption {
    opacity: 1;
}

.circle {
    padding: 26px 20px;
    border-radius: 50%;
    background-color: #ed8d8d;
    color: #fff;
    max-height: 80px;
    z-index: 2;
}

.how-it-works.row .col-2 {
    align-self: stretch;
}

.how-it-works.row .col-2::after {
    content: "";
    position: absolute;
    border-left: 3px solid #ed8d8d;
    z-index: 1;
}

.how-it-works.row .col-2.bottom::after {
    height: 50%;
    left: 50%;
    top: 50%;
}

.how-it-works.row .col-2.full::after {
    height: 100%;
    left: calc(50% - 3px);
}

.how-it-works.row .col-2.top::after {
    height: 50%;
    left: 50%;
    top: 0;
}

.backbtn .btn-back {
    border: 1px solid #212529;
    padding: 1rem 2rem;
    background-color: #212529;
}

.backbtn .btn-back:hover {
    border: 1px solid #212529;
    padding: 1rem 2rem;
    background-color: #212529;
}

.backbtn .btn-back a {
    /* font-size: 20px; */
    color: #fff;
    font-weight: bold;
}

.timeline hr {
    border-top: 3px solid #ed8d8d;
    margin: 0;
    top: 17px;
    position: relative;
}

.timeline .col-2 {
    display: flex;
    overflow: hidden;
}

.timeline .corner {
    border: 3px solid #ed8d8d;
    width: 100%;
    position: relative;
    border-radius: 15px;
}

.timeline .top-right {
    left: 50%;
    top: -50%;
}

.timeline .left-bottom {
    left: -50%;
    top: calc(50% - 3px);
}

.timeline .top-left {
    left: -50%;
    top: -50%;
}

.timeline .right-bottom {
    left: 50%;
    top: calc(50% - 3px);
}

#timeline {
    position: relative;
}

#events {
    position: absolute;
    /* background-color: #41b495; */
    left: 10px;
    bottom: 30%;
    top: 20%;
    height: 325px;
    border-radius: 5px;
    margin: 10px;
    padding: 10px;
    color: white;
    font-size: large;
    z-index: 9999;
    overflow-y: scroll;
    box-sizing: content-box;
    background-color: #884949f2;
    display: none;
}

#events::-webkit-scrollbar {
    width: 0;
    /* Remove scrollbar space */
    background: transparent;
    /* Optional: just make scrollbar invisible */
}

/* Optional: show position indicator in red */
#events::-webkit-scrollbar-thumb {
    background: #ff0000;
}

.leaflet-popup-content {
    overflow-y: scroll;
    overflow-x: unset;
}

#events>#title {
    display: flex;
    justify-content: center;
}

#Place {
    margin-top: 5px;
}

.page-section .btn-back {
    font-weight: normal;
    /* font-size: 20px; */
    color: #fff;
    background-color: #0d1230;
}

input,
select,
option {
    font-family: "latoregular" !important;
    font-size: 19px !important;
}

input::placeholder,
select::placeholder {
    font-family: "latoregular" !important;
    font-size: 1.25rem !important;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: start;
}

@media (max-width: 768px) {
    .partner-logo {
        height: 95px;
        overflow: hidden;
        padding: 0 0.5rem;
    }

    /* .partner-logo:nth-child(5) {
    margin-bottom: 0.75rem;
    margin-top: 1.55rem;
  }
  .partner-logo:nth-child(6) {
    margin-bottom: 0.55rem;
    margin-top: 1.45rem;
  } */
}

@media (max-width: 576px) {
    .partner-logo-container {
        gap: 2rem;
    }

    .partner-logo {
        position: relative;
        /* left: -1rem;
    height: 108px;
    overflow: hidden; */
        /* margin: 1.25rem 0; */
        padding: 0 0.5rem;
    }

    .partner-logo:nth-child(1) {
        margin: 0;
    }

    .partner-logo:nth-child(2) {
        margin: 0;
    }


    .partner-logo:nth-child(4) {
        margin-top: 0;
    }


}



#page_count a {
    color: #0D1230 !important;
}

#page_count a:hover {
    color: #BA5C12 !important;
}

#page_count p {
    color: #A0A0A2 !important;
}

#page_count {
    margin-bottom: 5px;
}

#search-result-table th,
#search-result-table td {
    padding: 15px;
}

#search-result-table table {
    background-color: rgba(13, 18, 48, 0.05);
    border-collapse: collapse;
    border: 1px solid rgba(13, 18, 48, 0.03);
    border-left: 0;
    font-size: 13px;
    overflow: hidden;
    width: 100%;
}

#search-result-table table thead tr {
    font-size: 10px;
    text-transform: uppercase;
}

#search-result-table table thead {
    background-color: #fff;
    border: 1px solid rgba(13, 18, 48, 0.03);
    border-right: 0;
    border-bottom: 0;
    box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
    margin-bottom: 1px;
}

#search-result-table table th {
    background-color: silver;
    font-weight: bold;
}

#search-result-table table tbody tr {
    border: 2px solid rgba(26, 26, 26, 0.02);
}

#search-result-table table tbody tr:last-child td:first-child {
    border-bottom: 1px solid rgba(13, 18, 48, 0.1);
}

#search-result-table table tbody tr {
    border: 1px solid rgba(13, 18, 48, 0.03);
    border-top: 0;
    border-right: 0;
    box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
    margin-bottom: 1px;
}

#search-result-table table tbody tr td a {
    color: #0D1230 !important;
}

#search-result-table table tbody tr td a:hover {
    color: #FFFFFF !important;
}

/*.card {
    height: 250px;
    margin-bottom: 30px;
}*/

.card-header {
    min-height: 70px;
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
}

tr.list-view {
    font-size: small !important;
}

.cards a {
    color: #0D1230 !important;
}

.cards a:hover {
    color: #94490e !important;
}

.card-title {
    font-size: 25px;
}

.cards p span {
    font-weight: bold;
}

.card-learn-more {
    bottom: 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    color: #1a1a1a;
    margin-bottom: 10px;

}

h2 {
    line-height: 3rem;
}

h1 {
    font-size: 2.5rem !important;
}

h2 {
    font-size: 2rem !important;
}

h3 {
    font-size: 1.75rem !important;
}

h4 {
    font-size: 1.5rem !important;
}

h5 {
    font-size: 1.25rem !important;
}

h6 {
    font-size: 1rem !important;

}

.btn {
    font-size: 19px;
}

body {
    font-size: 19px;
}

table {
    font-size: 19px;

}

/*
Separator
*/
.separator_left {
    width: 85px;
    height: 2px;
    margin: 20px 0px;
    background: #0D1230;
}

.separator_auto {
    width: 85px;
    height: 2px;
    margin: 20px auto;
    background: #0D1230;
}

.separator_small {
    width: 30px;
    height: 2px;
    margin: 20px 0px;
    background: #0D1230;
}

/* credits ----------------------- */
#credits-img .img-fluid {
    max-width: 80%;
    height: auto !important;
}

/*  - Mobile only (overrides above on small screens) */
@media (max-width: 767px) {
    .partner-logo-container {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 25px !important;
    }

    #credits-img {
        flex: 0 0 45% !important;
        max-width: 45% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

    }

    #credits-img .img-fluid {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        max-height: 80px !important;
        object-fit: contain !important;
        display: block !important;

    }
}

@media (min-width:441px) and (max-width: 767px) {

    .partner-logo:nth-child(5),
    .partner-logo:nth-child(4) {

        margin-top: 15px !important
    }

}

@media(max-width:440px) {
    .partner-logo-container {
        gap: 10px !important;
    }

    #credits-img .img-fluid {
        max-width: 100% !important;

    }


}

/* contact */
#Contact a {
    word-break: normal !important;
}

#Contact p {
    margin: 0;
}

#Contact {
    background-color: #0D1230;
}

.address-column {
    @media (min-width: 768px) and (max-width: 991px) {

        padding-right: 25px;
        padding-left: 0 !important;
    }

    @media (min-width:992px) {
        padding-left: 25px;
        padding-right: 30px;
    }

    @media(min-width:1200px) {
        padding-left: 20px;
        padding-right: 0px;

    }
}

.address-column.lang-es,
.address-column.lang-pt {

    @media(min-width:1200px) {
        padding-left: 42px !important;
        padding-right: 0px;
    }
}

@media(min-width:1200px) {
    #Contact .support {
        padding-left: 0px;
    }
}

@media (min-width: 576px) and (max-width: 767.5px) {

    .content-contact {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "email support"
            "address support";

    }

    .content-contact .email {
        grid-area: email;
        max-width: 100% !important;
    }

    .content-contact .address {
        grid-area: address;
        max-width: 100% !important;
    }

    .content-contact .support {
        grid-area: support;
        max-width: 100% !important;
        align-self: start;
    }
}

/*
best-practices css-------------------------
*/

.footnote {
    line-height: 1.5;
    font-size: 14px;
}

.about-page h2 {
    font-size: 50px;
    font-family: cormorantbold;
    font-weight: bold;
    margin-bottom: 30px;
    margin-top: 0;
}

.name {
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    line-height: normal;
    margin-bottom: 20px;
    font-family: sans-serif;
}

#map {
    height: 500px;
}

.leaflet-popup-content {
    overflow: hidden;

}


.leaflet-container {
    font-family: "latoregular" !important;
    font-size: 15px !important;
}

.leaflet-top,
.leaflet-bottom {
    z-index: 900 !important;
}

.colorGreen {
    color: #27AD88 !important;
}

.cursor-pointer {
    cursor: pointer
}

.top-left-radius {
    border-radius: 12px 0 0 0 !important;
}

.record-page .badge {
    white-space: normal !important;
    text-align: start !important;
}

.record-page  header.masthead h1  {
    word-wrap:break-word;
}

.record-page #Contact {
    background-color: transparent !important;
}

.record-page .leaflet-popup-content {
    margin: 0px !important;
    width: 271px !important;
}

/* .container{
    margin-right: 0rem !important;
} */

a {
    word-wrap: break-word;
    /* word-break: break-word; */
}

/*Our logo page */
.Ourlogo a {
    word-break: break-word;
}

#page-logo .col-lg-4 {
    display: flex;
    flex-direction: column;
}

#page-logo .col-lg-4 img {
    width: 100%;
    flex: 1;
    object-fit: cover;
    min-height: 0;
}

/* index page css-------------------------------------------------------- */
input::placeholder {
    color: white !important;
    font-size: 19px !important;
}


#index-input {
    border-radius: 50px 0 0 50px;
}

#index-btn {
    border-radius: 0 50px 50px 0;

}


/* Base style for sections with background images */
.bg-image-section {
    position: relative;
    overflow: hidden;
}

/* Pseudo-element for background images with filter */
.bg-image-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: cover;
    z-index: 0;
}

/* Ensure content stays above the filtered background */
.bg-image-section>* {
    position: relative;
    z-index: 1;
}

/* Individual background images for each section */
.masthead::before {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
        url('../img/header.png');
    filter: brightness(2.1) contrast(1.0);
}

.search-section::before {
    background-image: url('../img/backgrounds/search.png');
    background-position: top;
    background-size: 100% 110% !important;
    filter: brightness(1.5);
}

.services-section::before {
    background-image: url('../img/Head_Example_2.png');
    filter: contrast(.85) brightness(1.3);
}

.services-section .card {
    background: rgba(0, 0, 0, 0.45);
    transition: all 0.3s ease-in-out;
}

.services-section .card:hover {
    transform: scale(1.05);
}

/* Style for the search container in hero */
.hero-search-container {
    max-width: 700px;
    margin: 0 auto;
    margin-top: 30px;
}

.hero-search-input {
    height: calc(1.7em + 1.11rem + 2px);
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    line-height: 1.5;

    background: transparent;
    color: white;
    border: 1px solid #BA5C12;
    border-right: none;
}

.hero-search-input::placeholder {
    color: #fff !important;
}

.hero-search-input:focus::placeholder {
    color: #000 !important;
}

.hero-search-button {
    height: calc(1.7em + 1rem + 2px);
    padding: 0.5rem 1.5rem;
    font-size: 1.25rem;

    background-color: #BA5C12;
    border-color: #BA5C12;
    color: white;
}

.hero-search-button:hover,
.browsebtn:hover {
    background-color: #94490e;
    border-color: #94490e;
    color: #fff;
}

.advanced-search-link {
    color: #BA5C12;
    margin-top: 10px;
    display: inline-block;
}

.browsebtn {
    background-color: #BA5C12;
    border: none;
    color: white;

    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    transition: all 0.3s ease;
    height: 52px;

    @media (max-width:576px) {
        white-space: normal;

    }
}


.overlay {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
}


/* about pages css-------------------------------------------------------------------------------- */

.content-wrapper {
    /* padding:3rem 0rem ; */
    min-height: 60vh;
     flex: 1 0 auto;

}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.footer-blank{
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
}

/* project team */
#Team img ,#AdvisoryTeam img {
    object-fit: cover;
    object-position: top;
}

#Team .img-container, #AdvisoryTeam .img-container {
    overflow: hidden;
}

.divider {
    width: 99%;
    height: 1px;
    margin: 20px 0px;
    background: #0d123067;
}

#Team .team-img,#AdvisoryTeam .team-img {
    width: 289px;
    height: 289px;

    @media (min-width: 992px) {
        width: 320px;
    }
}

@media (max-width: 576px) {
    #Team .team-img, #AdvisoryTeam .team-img {
        width: 80%;
        height: auto
    }
}

#Team .about-details-container, #AdvisoryTeam .about-details-container {
    min-height: 350px;
}

@media (max-width: 768px) {
     #AdvisoryTeam .about-details-container {
        min-height: auto;
    }
}


/* Best Practices Navigation and Content Styling */
#best-practices-nav {
    background: #BA5C12;
    /* Brown color matching the icons */
    border-radius: 5px 5px 0px 0px;
    padding: 0;
    width: 100%;
}

#page-best div.subpage {
    min-height: 70vh;
    max-height: 80vh;
    overflow-y: auto;
    padding-right: 15px;
    transition: opacity 0.3s ease;
}

div.subpage.loading {
    opacity: 0.6;
    position: relative;
}

div.subpage.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #BA5C12;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Custom scrollbar styling */
div.subpage::-webkit-scrollbar {
    width: 8px;
}

div.subpage::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

div.subpage::-webkit-scrollbar-thumb {
    background: #BA5C12;
    border-radius: 4px;
}

@-moz-document url-prefix() {
    #best-practice-content {
        scrollbar-width: thin;
        scrollbar-color: #BA5C12 #f1f1f1;
    }
}

div.subpage::-webkit-scrollbar-thumb:hover {
    background: #94490e;
}

#page-best .nav-list {
    display: flex;
    flex-direction: column;
    font-style: normal;
    font-weight: 700;

    line-height: 1.4;
    padding: 0;
    margin: 0;
    width: 100%;
}

#page-best .nav-list li {
    height: auto;
    min-height: 45px;
    list-style: none;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

#page-best .nav-list li:last-child {
    border-bottom: none;
}

#page-best .nav-list li a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    padding: 12px 20px;
    width: 100%;
    transition: all 0.3s ease;
    word-break: normal !important;
}

#page-best .nav-list li a.active {
    background-color: #94490e;
    border-color: #94490e;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

#page-best .nav-list li:hover {
    background: #94490e;
}

/* Content styling */
.best-practice-content {

    line-height: 1.6;
    color: #333;
    padding: 0 10px;
}

.best-practice-content h1,
.best-practice-content h2,
.best-practice-content h3 {
    color: #BA5C12;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 24px;
}



.best-practice-content ul,
.best-practice-content ol {
    font-size: 19px;
    margin-bottom: 1.2rem;
    padding-left: 2rem;
}

.best-practice-content li {
    font-size: 19px;
    margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #page-best .nav-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    #page-best .nav-list li {
        flex: 1 1 auto;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    #page-best .nav-list li:last-child {
        border-right: none;
    }

    #page-best div.subpage {
        max-height: 60vh;
    }

}

.text-wrap-container {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* URL without page reload styling */
#page-best .nav-list li a {
    cursor: pointer;
}

#page-best .nav_container {
    border: 2px solid #0D1230;
    border-radius: 6px;
}

/* logo-page css------------------------------------------------------------------------- */
#page-logo .img-fluid {
    object-fit: cover !important;
    object-position: 35% 50% !important;

    @media(max-width: 768px) {
        object-position: top !important;

    }
}

@media(max-width: 576px) {
    page-logo img {
        width: 100%;
    }

}

/* C&A page css----------------------------------------------------- */
.past-team-members {
   
    overflow-y: auto;
}

@media (max-width: 767px) {
    .past-team-members {
        max-height: none;
        overflow-y: visible;
    }
}

#page-CA h5 {
    margin-bottom: 2rem;
}

.pb-2r {
    padding-bottom: 2rem;
}

.CA_timerange {
    color: #666;
    white-space: nowrap;
}

#page-CA .row-equal-height {
    display: flex;
    flex-wrap: wrap;
}

#page-CA .row-equal-height > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

/* Collaborators Column - Fixed height based on content */
#page-CA .collaborators-column {
    height: 100%;
}

/* Acknowledgments Column - Fixed height based on content */
#page-CA .acknowledgments-column {
    height: 100%;
}

/* Team Members Column - Flex container */
#page-CA .team-members {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Current Team - Fixed height, never shrinks */
#page-CA .current-team {
    flex-shrink: 0;
}

/* Past Team Section - Takes remaining space */
#page-CA .past-team-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Important for flex to work properly */
}

/* Past Team Heading - Fixed, never shrinks */
#page-CA .past-team-heading {
    flex-shrink: 0;
   
}

/* Past Team Members - Takes remaining space with scroll */
#page-CA .past-team-members {
    flex: 1;
    overflow-y: auto;
    min-height: 100px;
   
}


/* Mobile: Remove flex and height constraints */
@media (max-width: 767px) {
    #page-CA .row-equal-height {
        display: block;
    }
    
    #page-CA .row-equal-height > [class*='col-'] {
        display: block;
        height: auto;
    }
    
    #page-CA .team-members {
        height: auto;
        display: block;
    }
    
    #page-CA .past-team-section {
        display: block;
        flex: none;
    }
    
    #page-CA .past-team-members {
        max-height: none !important;
        overflow-y: visible !important;
        min-height: auto;
        height: auto;
    }
}


/* reference page----------------------------------------------------- */
#page-reference p {
    margin-bottom: 0 !important;
}

/* digital learning websites */
#dlw-img {
    max-width: 85% !important;
}

.reference-section {
    background: linear-gradient(0deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.7)), var(--reference-bg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    #dlw-img {
        max-width: 100% !important;
    }
}

/* digital learning ppt */
.ppt-thumbnail {
    max-width: 85% !important;
}

/* digital learning ppt */


/* digital learning vedioes------------------------------------------ */
.iframe1 {
    min-height: 10rem !important;
}

.iframe1 iframe {
    height: 320px !important;
    width: 100% !important;
}

.video-title {
    letter-spacing: 3px;
    text-transform: uppercase;
}

@media (min-width:768px) {
    .iframe1 iframe {
        height: 320px !important;
        width: 95% !important;
    }
}

@media (min-width:992px) {
    .iframe1 iframe {
        height: 320px !important;
        width: 90% !important;
    }
}

/* Digital identities css---------------------------- */

/* person-event.php */
.f13 {
    font-size: 13px !important;
}

/* person-control.php */
.lh-12 {
    line-height: 1.2 !important;
}

/* search results */
.height-3 {
    height: 3.2rem;
}

#footerNav {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700;
}

.footerRecord .nav-link {
    color: white !important;
}

.overflowhidden {
    overflow: hidden !important;
}

.featurebox {
    min-height: 24rem;
    border: 1px solid #BA5C12;
}

#di-page .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#di-page .text-Feature {
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: var(--line-count, 10);
    -webkit-box-orient: vertical;
    line-height: 1.5;
    margin-bottom: 1rem;

}

#di-page .btn-learn-more {
    margin-top: auto;
}

/* advanced Search page */
#advance-result i {
    vertical-align: middle;
}


/* collections page css------- */
.Collection .searchResult {
    background-color: #0D1230;
    line-height: 3rem;
}

.Collection #pageJumpInput {
    width: 80px;
}

.NoCollection {
    background-color: #f8f9fa;
    border-color: #d6e9f9;
    color: #31708f;
}

.rs-w {
    width: auto;
}

@media (max-width:576px) {
    .rs-w {
        width: 123px;
    }

}


.Collection .collection-dropdown {
    vertical-align: text-bottom;

    @media (max-width: 576px) {
        white-space: normal;
    }
}

.Collection .btn-outline-secondary {
    color: #6c757d;
}

/* Mobile only for img and info description */
@media (max-width: 767px) {
    .collection-mobile-stack {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .collection-mobile-stack>div {
        width: 100% !important;
        max-width: 100% !important;
    }

    .collection-mobile-stack img {
        max-width: 80% !important;
        margin: 0 auto !important;
        display: block !important;
    }
}

/* ethono chart  php css------*/
/* Add this - wraps the chart container for scrolling */


@media (max-width: 992px) {
    #ethnonym_barChart {
        min-height: 300px;
    }

    .chart-container {
        width: 100%;
        height: auto;
        overflow-x: scroll;
    }
}

/* controolled variables */

@-moz-document url-prefix() {
    #page-controlled .my-custom-scrollbar {
        scrollbar-width: thin;
        scrollbar-color: #BA5C12 #f1f1f1;
    }
}

#page-controlled .my-custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 4px;
}

#page-controlled .my-custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#page-controlled .my-custom-scrollbar::-webkit-scrollbar-thumb {
    background: #BA5C12;
    border-radius: 4px;

}

#page-controlled .my-custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #BA5C12;
}

#page-controlled .my-custom-scrollbar::-webkit-scrollbar-thumb:active {
    background: #BA5C12;
}

@media (max-width:767.5px) {
    #page-controlled .border-right {
        border: 1px solid #8d8d8e !important;
        margin-bottom: 1.5rem;
        box-shadow: inset 0px 0px 20px #0000004d;
    }

}

@media (min-width:768px) {
    #page-controlled h4 {
        padding-bottom: 1rem;
        margin-bottom: 1.2rem;
    }

}

@media (min-width:768px) and (max-width:992px) {
    #page-controlled .cv_list {
        border-right: none !important;
    }

    #page-controlled .border-right {
        border-bottom: 1px solid #dee2e6 !important;
    }
}

@media (min-width:992px) {
    #page-controlled .border-right {

        border-right: 1px solid #dee2e6 !important;
    }

    #page-controlled .border-right {
        border-bottom: none !important;
    }

    #page-controlled .my-custom-scrollbar {
        max-height: 992px;
        overflow-y: auto;

    }

    #page-controlled .my-custom-scrollbar table {
        margin-bottom: 0;
    }
}


/* recordview,fsm---------------------- */
/* <!-- Additional CSS for scrollable content --> */

.record-page {
    scroll-padding-top: 7rem;
    scroll-behavior: smooth !important;
}

.record-page #map {
    height: 500px;
    width: 100%;
}


.record-page .event-detail-item {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    display: block;
}

.record-page .event-detail-label {
    display: inline-block;
    padding-left: 0.5rem;
    font-weight: bold;
    line-height: 1.2;
    word-break: break-word;
}

.record-page .event-detail-value {
    display: inline-block;
    padding-left: 0.5rem;
    line-height: 1.2;
    display: block;

}

.record-page .timeline-panel {
    max-height: 500px;
    overflow-y: visible;
    padding: 0px !important;
}

.record-page .timeline-panel .tab-content {
    padding: 1rem;
    height: 400px;
    overflow: auto;

    @-moz-document url-prefix() {
        scrollbar-width: thin;
        scrollbar-color: #BA5C12 #f1f1f1;
    }
}

.record-page .timeline-panel .tab-content::-webkit-scrollbar {
    width: 8px;
}

.record-page .timeline-panel .tab-content::-webkit-scrollbar-thumb {
    background: #BA5C12;
    border-radius: 4px;
}

@media (max-width:576px) {
    .record-page .timeline .timeline-panel .tab-content {
        height: 300px;
    }
}

/* fn event map fsm css and fn event map--------------------------- */
/* ========== BASE STYLES (unchanged) ========== */

.sequence-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
    max-height: 70px;
    overflow-y: auto;
    padding: 3px 3px 15px 3px;
}

.sequence-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2E86AB;
    cursor: pointer;
    transition: all 0.2s;
}

.sequence-dot:hover {
    transform: scale(1.2);
}

.sequence-dot.active {
    background: #BA5C12;
    transform: scale(1.2);
    box-shadow: 0 0 2px rgba(255, 215, 0, 0.5);
}

.nav-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

.nav-buttons button {
    background: #2E86AB;
    border: none;
    color: white;
    padding: 5px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    transition: background 0.2s;
}

.nav-buttons button:hover {
    background: #1e6a8a;
}

.reset-view-btn {
    background: #E74C3C;
}

.reset-view-btn:hover {
    background: #c0392b;
}

.current-info {
    font-size: 11px;
    color: #666;
    margin-top: 8px;
    text-align: center;
}

.active-marker-info {
    color: #BA5C12;
    font-weight: bold;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.start-dot,
.end-dot,
.waypoint-dot,
.active-dot,
.region-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.event-region-dot {
    background: #ffa60087;
    box-shadow: 0 0 5px #ffa600a1;
}

.region-boundary-dot {
    background: #3388ff87;
    box-shadow: 0 0 5px #3388ff;
}

.start-dot {
    background: #27AE60;
}

.end-dot {
    background: #E74C3C;
}

.waypoint-dot {
    background: #2E86AB;
}

.active-dot {
    background: #BA5C12;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.legend-color {
    width: 20px;
    height: 3px;
    background: #2E86AB;
    margin-right: 8px;
}

.legend-arrow {
    width: 20px;
    margin-right: 8px;
    color: #D64933;
    font-size: 14px;
}

.region-highlight {
    transition: all 0.3s ease;
}

.leaflet-interactive {
    outline: none !important;
}

.leaflet-control-attribution {
    display: none !important;
}

/* nav dropdown for 992 less screen */

.sectionDrop {
    color: white;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
}
    .sequence-control-compact .full-content {
        max-width: 300px;
    }
/* ========== MOBILE (≤768px) – both controls start collapsed ========== */
@media (max-width: 768px) {

    /* ----- SEQUENCE CONTROL (mobile) ----- */
    .sequence-control-compact {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 30px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        padding: 6px 12px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .sequence-control-compact .full-content {
        display: none;
        position: absolute;
        bottom: 45px;
        left: 0;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 12px;
        padding: 12px;
        min-width: 263px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        z-index: 1000;
    }

    /* Show full content when NOT collapsed */
    .sequence-control-compact:not(.collapsed) .full-content {
        display: block;
    }

    /* Toggle icon visible only when collapsed */
    .sequence-control-compact .toggle-icon {
        font-size: 20px;
        color: #2E86AB;
        display: flex;
        align-items: center;
        gap: 5px;
    }



    /* Close icon inside full content (shown only when expanded) */
    .sequence-control-compact .close-icon {
        display: inline-block;
        margin-left: auto;
        cursor: pointer;
        color: #888;
    }

    /* ----- LEGEND CONTROL (mobile) – unchanged ----- */
    .legend-control-compact {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 30px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .legend-control-compact .full-content {
        display: none;
        position: absolute;
        bottom: 45px;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 12px;
        padding: 10px;
        min-width: 160px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        z-index: 1000;
    }

    .legend-control-compact:not(.collapsed) .full-content,
    .legend-control-compact.expanded .full-content {
        display: block;
    }

    .legend-control-compact .toggle-icon {
        font-size: 18px;
        padding: 6px 12px;
        color: #2E86AB;
    }
}

/* ========== DESKTOP (≥769px) – both controls start expanded ========== */
@media (min-width: 768px) {

    /* ----- SEQUENCE CONTROL (desktop) – same behavior as legend ----- */
    .sequence-control-compact {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        font-size: 12px;
        position: relative;
    }

    /* Full content visible by default */
    .sequence-control-compact .full-content {
        display: block;
        padding: 10px 14px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 10px;


    }

    /* When collapsed, hide full content and show toggle icon */
    .sequence-control-compact.collapsed .full-content {
        display: none;
    }

    /* Toggle icon – hidden by default, appears when collapsed */
    .sequence-control-compact .toggle-icon {
        display: none;
        font-size: 20px;
        color: #2E86AB;
        /* position as needed */
        background: rgba(255, 255, 255, 0.95);
        padding: 4px 8px;
        border-radius: 20px;
        cursor: pointer;
    }

    .sequence-control-compact.collapsed .toggle-icon {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    /* Close icon – always visible inside full content (no display:none) */
    .sequence-control-compact .close-icon {
        cursor: pointer;
        color: #888;
        margin-left: auto;
    }

    .sequence-control-compact .close-icon:hover {
        color: #333;
    }

    /* ----- LEGEND CONTROL (desktop) – unchanged (exactly as you had it) ----- */
    .legend-control-compact {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        font-size: 15px;
        min-width: 180px;
        position: relative;
        z-index: 1;
    }

    .legend-control-compact .full-content {
        display: block;
        padding: 8px 12px;
    }

    .legend-control-compact.collapsed .full-content {
        display: none;
    }

    .legend-control-compact .toggle-icon {
        display: none;
        font-size: 20px;
        color: #2E86AB;
        position: absolute;
        bottom: 8px;
        right: 10px;
        z-index: 2;
        background: rgba(255, 255, 255, 0.95);
        padding: 4px 8px;
        border-radius: 20px;
        cursor: pointer;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .legend-control-compact.collapsed .toggle-icon {
        display: flex;
    }

    .legend-control-compact .close-icon {
        cursor: pointer;
        color: #888;
    }

    .legend-control-compact .close-icon:hover {
        color: #333;
    }
}


/* public folder footer fullrecord css-- */
.arrow-icon {
    transition: transform 0.3s ease;
}

.arrow-icon.rotate {
    transform: rotate(180deg);
}

.rotate {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* public folder menu css-- */
/* #mainNav{
    @media (max-width: 992px) {
        height: 100vh;
        overflow-y: auto;
        
    }
  } */
/* 1. GENERAL MOBILE SUBMENU STYLES */


.sectionNavlg,
.sectionNav {
    background-color: #0D1230 !important;
    color: white !important;
}

.sectionNavlg .nav-link,
.sectionNav .nav-link {
    color: white !important;
}






/* 2. NAVIGATION FLEX LAYOUT */

.nav-item .d-flex {
    width: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Main nav link - takes available space */
.nav-item .d-flex .nav-link {
    flex: 1;
    text-align: left;
}

/* Dropdown arrow - positioned at far right */
.nav-item .d-flex .drop-btn {
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    cursor: pointer;
    user-select: none;
    color: #6c757d !important;
    flex-shrink: 0;
    margin-left: auto;
    min-width: 44px;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-item .d-flex .drop-btn:hover {
    color: #ffffff !important;
}

/* Dropdown chevron icon */
.drop-chevron {
    transition: transform 0.3s ease;
    display: inline-block;
    color: #6c757d;
    font-size: 1rem;
    padding: 0.25rem 0.75rem;
}

.drop-chevron.rotated {
    transform: rotate(180deg);
}






/* 3. FONT STYLES */
.dis-btn {
    font-size: 18.4px;

    @media(max-width: 576px) {
        text-align: start;
    }
}

.dfont {
    font-size: 1.15rem;
    font-family: 'latoregular';
    font-weight: 400;
}


/* 4. DESKTOP STYLES */

@media (min-width: 992px) {
    .dropdown-menu {
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Show language dropdown on hover 
    .d-none.d-lg-block.ml-3 .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 1.5rem;
    } */

    /* Language icon button */
    .btn-link.dropdown-toggle {
        color: #635252;
        text-decoration: none !important;
    }


    .btn-link.dropdown-toggle:hover {
        color: #817878;
    }

    .btn-link.dropdown-toggle::after {
        vertical-align: middle;
    }

    /* Hide dropdown arrows on desktop */
    .drop-btn {
        display: none !important;
    }


}

/* ==== Custom CSS for Navbar States ==== */
@media (max-width: 576px) {
    .togle-h {
        font-size: 2.25rem;
    }
}

.togle-h {

    color: white !important;

}


/* 5. MOBILE STYLES (max-width: 769px) */

/* @media (min-width: 768px) and (max-width: 992px) {
    #mainNav .img-main {
        width: 70%;
    }
} */

@media (max-width: 1200px) {
    .mselect {
        padding: 0.75rem 0;
    }

    /* Entire menu scrolls */
    #navbarResponsive {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: none;
    }

    #navbarResponsive::-webkit-scrollbar {
        width: 5px;
    }

    #navbarResponsive::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    #navbarResponsive::-webkit-scrollbar-thumb {
        background: #999;
        border-radius: 10px;
    }

    #navbarResponsive::-webkit-scrollbar-thumb:hover {
        background: #666;
    }

    /* Space between menu items */
    .navbar-nav .nav-item {
        margin: 5px 0;
    }

    /* Language button */
    .dropdown .btn-outline-secondary {
        width: 100%;
        text-align: left;
        border-radius: 5px;
    }

    /* Make dropdown part of the menu */
    .mobile-language-menu {
        position: static !important;
        transform: none !important;
        float: none !important;
        width: 100% !important;
        margin-top: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: #151C45 !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0;
    }

    /* Language items */
    .mobile-language-menu .dropdown-item {
        padding: 12px 20px;
        font-size: 1.25rem !important;
        color: #a9b7c3;
        white-space: normal;
        word-break: break-word;
        font-weight: 500;
    }

    .mobile-language-menu .dropdown-item.active {
        color: #a9b7c3;

    }

    .mobile-language-menu .dropdown-item:hover,
    .mobile-language-menu .dropdown-item:focus {
        background-color: #151C45 !important;
    }

    /* Dropdown button spacing */
    #mobileLanguageDropdown {
        margin-top: 5px;
        margin-bottom: 5px;
    }

    /* Dropdown arrow positioning - at far right */
    .nav-item .d-flex {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100%;
    }

    .nav-item .d-flex .nav-link {
        flex: 1;
        text-align: left;
        padding-right: 0.5rem;
    }

    .nav-item .d-flex .drop-btn {
        flex-shrink: 0;
        padding: 0.5rem 0.5rem 0.5rem 1rem;
        margin-left: auto;
        min-width: 44px;
        text-align: right;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        color: #6c757d !important;
        cursor: pointer;
        user-select: none;
    }

    .nav-item .d-flex .drop-btn:hover {
        color: #ffffff !important;
    }

    .drop-chevron {
        color: #6c757d;
        font-size: 1rem;
        transition: transform 0.3s ease;
    }

    .drop-chevron.rotated {
        transform: rotate(180deg);
    }

    /* .drop-btn:hover .drop-chevron {
        color: #ffffff;
    } */
}


/* 6. ACTIVE LANGUAGE STYLES */

.language-dropdown-item.active {
    color: #212529;
    background-color: transparent;
}

/* 7. DESKTOP DROPDOWN LOOK */

.dropdown-menu .dropdown-item {
    transition: .2s ease;
    font-size: 19px;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
}

/* disclaimer css */
.dis-hanging-indent {
    display: block;
    padding-left: 25px;
    text-indent: -25px;
    /* margin-bottom: 10px; */
}

.disclaimer-content a {
    color: #27AD88;
}

#secondarynav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.location-event-types {
    max-height: 170px !important;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.7rem;
    margin-top: .5rem;
    scrollbar-width: none;
    display: none;
}

#visualization .arrow-icon {
    margin-left: 8px;
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 12px;
    color: #ba5b12;
}

.text-black {
    color: #333;
}

.location-toggle.active .arrow-icon {
    transform: rotate(180deg);
}

#visualization .event-count-container {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    color: #666;
}

#visualization .custom-marker-circle {
    border-radius: 50%;
    border: 2px solid #ffffff;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#visualization .no-events {
    color: #999;
    font-style: italic;
    padding: 2px 0;
}

#visualization .no-coords {
    margin: 20px;
}

#visualization .location-item .count {
    white-space: nowrap;
    margin-left: 20px;
}

.nowrap {
    white-space: nowrap;

}

@media(max-width:576px) {
    #visualization .all-event-locations .text-muted-custom {
        flex-wrap: wrap;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding-left: 0.50rem;
        min-width: 100px;
    }
}


#visualization .leaflet-popup-content {
    width: 250px !important;
    max-height: 271px !important;
    overflow-y: auto;
    scrollbar-width: none;

    @media(max-width:576px) {
        width: 220px !important;
    }
}

#visualization .leaflet-popup-content p {
    margin: 0 !important;
}

#visualization .card {
    margin-bottom: 20px;
    border: 1px solid #dee2e6 !important;
    background-color: #ffffff;
}

#visualization .card-header {
    min-height: 55px !important;
    border-bottom: 1px solid #dee2e6;
    color: #ffffff;
    text-align: left;
    font-weight: bold;
    background-color: #ba5b12f6 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    width: 100%;
}

#visualization .card-header-events {
    @media(min-width:992px) {
        min-height: 73px !important;
    }
}

#visualization .card-header .header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

#visualization .card-header .header-title h5 {
    margin-bottom: 0;
    color: #ffffff;
}

#visualization .card-header .header-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

#visualization .card-header .header-filter .dropdown {
    display: inline-block;
}

#visualization .card-header .header-filter .btn-filter {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 200px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#visualization .card-header .header-filter .btn-filter:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

#visualization .card-header .header-filter .btn-filter:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

#visualization .card-header .header-filter .btn-filter .filter-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

#visualization .card-header .header-filter .dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
    max-width: 200px;
    padding: 0;
    border-radius: 4px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); */
    margin: 0 !important;
    z-index: 1001;
}

#visualization .card-header .header-filter .dropdown-menu .dropdown-item {
    padding: 8px 16px;
    font-size: 16px;
    color: #495057;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    border-bottom: 1px solid #f8f9fa;
}

#visualization .card-header .header-filter .dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #0D1230;
}

#visualization .card-header .header-filter .dropdown-menu .dropdown-item.active {
    background-color: #ba5b12f6;
    color: #ffffff;
}

#visualization .card-header .header-filter .dropdown-menu .dropdown-item:last-child {
    border-bottom: none;
}

#visualization .card-body {
    background-color: #ffffff;
    min-height: 345px;
}

#visualization canvas {
    width: 100% !important;
}

#visualization .data-container {
    max-height: 270px !important;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.7rem;
    margin-top: .5rem;
    min-height: 40px;
    margin-bottom: 10px;
}

#visualization .data-container::-webkit-scrollbar {
    width: 8px;
}

#visualization .data-container::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

#visualization .data-container::-webkit-scrollbar-thumb {
    background: #0D1230;
    border-radius: 4px;
}

#visualization .data-container::-webkit-scrollbar-thumb:hover {
    background: #1a1a3a;
}

@-moz-document url-prefix() {
    #visualization .data-container {
        scrollbar-width: thin;
        scrollbar-color: #0D1230 #f1f1f1;
    }
}


#visualization .data-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.5rem;
    margin: 0.25rem 0;
    border-radius: 4px;
    transition: all 0.2s ease;
    border-bottom: 1px solid #e9ecef;
    color: #1a1a1a;
}

#visualization .data-row:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

#visualization .data-row .location-details {
    font-size: 0.8rem;
    color: #6c757d;
    margin-left: 10px;
}

#visualization .map-container {
    width: 100%;
    height: 390px;
    border-radius: 4px;
}

#visualization .marker-cluster {
    background-color: rgba(186, 92, 18, 0.6);
    border-radius: 50%;
}

#visualization .marker-cluster div {
    width: 30px;
    height: 30px;
    margin-left: 5px;
    margin-top: 5px;
    background-color: rgba(186, 92, 18, 0.8);
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

#visualization .clickable-row {
    cursor: pointer;
}

#visualization .clickable-row:hover {
    background-color: #f8f9fa;
}

#visualization .text-people {
    color: #ba5b12f6;
}

#visualization .text-events {
    color: #ba5b12f6;
}

#visualization .text-muted-custom {
    color: #6c757d;
}

#visualization .progress {
    background-color: #e9ecef;
    border-radius: 4px;
    height: 8px;
}

#visualization .progress-bar-people {
    background-color: #ba5b12f6;
}

#visualization .progress-bar-events {
    background-color: #ba5b12f6;
}

#visualization .badge-custom {
    background-color: #f8f9fa;
    color: #0D1230;
}

#visualization .shadow-custom-lg {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#visualization .text-white {
    color: #ffffff;
}

#visualization .text-dark-custom {
    color: #1a1a1a;
}

#visualization .bg-people {
    background-color: #ba5b12f6;
}

#visualization .bg-events {
    background-color: #ba5b12f6;
}

#visualization .border-0 {
    border: 0 !important;
}

#visualization .all-event-locations {
    max-height: 390px !important;
    overflow-y: auto;
    scrollbar-width: none;
}

.custom-marker {
    background: transparent;
    border: none;
}

.custom-marker div {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.custom-marker div:hover {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #visualization .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    #visualization .card-header .header-filter {
        width: 100%;
    }

    #visualization .card-header .header-filter select {
        width: 100%;
        min-width: unset;
    }
}

/* global footer feedback from */
    /* ---------- FIXED FLOATING BUTTON (AI-assist style) ---------- */
    .fn-feedback-float-btn {
        position: fixed;
        bottom: 3rem;
        right: 1rem;
        z-index: 1050;
        width: 60px;
        height: 60px;
        border-radius: 60px;
        background: #0d1230;
        color: white;
        border: none;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.6rem;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        cursor: pointer;
        padding: 0 1.2rem;
        line-height: 1;
        overflow: hidden;
        white-space: nowrap;
    }

    .fn-feedback-float-btn .fn-btn-icon {
        flex-shrink: 0;
        transition: transform 0.3s ease-in-out;
    }

    .fn-feedback-float-btn .fn-btn-label {
        max-width: 0;
        opacity: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        font-size: 1rem;
        font-weight: 500;
    }

    .fn-feedback-float-btn:hover {
        width: auto;
        padding: 0 1.6rem 0 1.2rem;
        background: #0d1230;
        transform: scale(1.04);
        box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
    }

    .fn-feedback-float-btn:hover .fn-btn-label {
        max-width: 200px;
        opacity: 1;
        margin-left: 0.6rem;
    }
    .fn-feedback-float-btn:hover .fn-btn-icon {
        transform: rotate(-8deg) scale(1.05);
    }

    @media (max-width: 576px) {
        .fn-feedback-float-btn {
            bottom: 4rem;
            right: 1.2rem;
            width: 52px;
            height: 52px;
            font-size: 1.4rem;
        }

        .fn-feedback-float-btn:hover {
            width: auto;
            padding: 0 1.2rem 0 0.8rem;
        }

        .fn-feedback-float-btn:hover .fn-btn-label {
            max-width: 140px;
            font-size: 0.85rem;
        }
    }

    /* ---------- MODAL OVERLAY ---------- */
    .fn-feedback-modal-overlay {
        position: fixed;
        inset: 0;
        z-index: 1060;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        display: none;
        align-items: center;
        justify-content: center;
        padding: 1.5rem;
        animation: fnFadeIn 0.25s ease;
    }

    .fn-feedback-modal-overlay.active {
        display: flex;
    }

    @keyframes fnFadeIn {
        from {
            opacity: 0;
            transform: scale(0.96);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    /* ---------- MODAL CARD ---------- */
    .fn-feedback-modal-card {
        width: 100%;
        max-width: 90dvw;
        max-height: 90dvh;
        overflow-y: auto;
        scrollbar-width: none;
        border-radius: 32px;
        background: 
            linear-gradient(
                rgba(255, 255, 255, 0.45),
                rgba(255, 255, 255, 0.76)
            ),
            url(../img/bg-masthead.jpg);
        background-attachment: fixed;
        background-size: cover;
        border: 1px solid rgba(255, 255, 255, 0.25);
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
        padding: 2.4rem 2.8rem;
        position: relative;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
        line-height: 1.6;
        color: white;
    }

    .fn-feedback-modal-card::-webkit-scrollbar {
        display: none;
    }

    .fn-feedback-modal-card input::placeholder,
    .fn-feedback-modal-card textarea::placeholder {
        color: rgba(10, 10, 10, 0.7);
        font-size: 1.25rem !important;
    }

    @media (max-width: 576px) {
        .fn-feedback-modal-card {
            padding: 1.6rem 1.2rem;
            border-radius: 24px;
        }
    }

    /* close button */
    .fn-modal-close-btn {
        position: absolute;
        top: 1rem;
        right: 1.2rem;
        background: none;
        border: none;
        font-size: 1.8rem;
        color: #040404;
        cursor: pointer;
        transition: 0.2s;
        line-height: 1;
        padding: 0.2rem 0.6rem;
        border-radius: 40px;
    }

    .fn-modal-close-btn:hover {
        background: #edeae6;
        color: #1e1a16;
    }

    /* ---------- form styles ---------- */
    .fn-heading-primary {
        font-size: 1.8rem;
        font-weight: 600;
        letter-spacing: .05rem;
        color: #1e1a16;
    }

    .fn-body-text {
        font-size: 1.15rem;
        color: #0f0e0e;
        line-height: 1.7;
    }

    .fn-body-text-small {
        font-size: 0.8rem;
        color: #6f665e;
    }

    .fn-spacer-md {
        margin-bottom: 1.8rem;
    }

    .fn-spacer-lg {
        margin-bottom: 2.8rem;
    }

    .fn-form-label {
        font-size: 1rem;
        font-weight: 500;
        color: #1e1a16;
        margin-bottom: 0.25rem;
        display: block;
    }

    .fn-form-control {
        font-size: 1rem;
        padding: 0.7rem 1rem;
        border: 1.5px solid #e0dad4;
        border-radius: 14px;
        background: #fcfaf8;
        transition: 0.15s ease;
        color: #1e1a16;
        width: 100%;
        box-sizing: border-box;
    }

    .fn-form-control:focus {
        border-color: #3b6e9e;
        box-shadow: 0 0 0 3px rgba(59, 110, 158, 0.12);
        background: #ffffff;
        outline: none;
    }

    .fn-form-control.is-invalid {
        border-color: #dc3545;
        box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
    }

    .fn-form-control.is-valid {
        border-color: #28a745;
        box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.12);
    }

    .fn-invalid-feedback {
        font-size: 0.8rem;
        color: #dc3545;
        display: none;
        margin-top: 0.25rem;
    }

    .fn-invalid-feedback.show {
        display: block;
    }

    .fn-text-required {
        color: #b33c2e;
    }

    .fn-upload-zone {
        border: 2px dashed #d6cec6;
        border-radius: 20px;
        background: #fcfaf8;
        transition: 0.15s ease;
        cursor: pointer;
        position: relative;
        padding: 1.8rem 1.5rem;
        text-align: center;
    }

    .fn-upload-zone:hover {
        background: #f8f5f1;
        border-color: #b0a69c;
    }

    .fn-upload-zone input[type="file"] {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
    }

    .fn-file-list-badge {
        background: #f0ede8;
        padding: 4px 18px;
        border-radius: 40px;
        font-size: 0.8rem;
        color: #2d2822;
        display: inline-block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .fn-captcha-box {
        background: #faf8f6;
        border-radius: 24px;
        border: 1px solid #edeae6;
        padding: 14px 0;
    }

    .fn-captcha-box .cf-turnstile {
        transform: scale(0.95);
        transform-origin: center;
    }

    .fn-submit-btn {
        background: #1a2e3f;
        border: none;
        border-radius: 60px;
        color: white;
        font-size: 1rem;
        font-weight: 600;
        padding: 0.75rem 2rem;
        transition: 0.15s ease;
        box-shadow: 0 4px 10px rgba(26, 46, 63, 0.12);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        width: 100%;
        cursor: pointer;
    }

    .fn-submit-btn:hover:not(:disabled) {
        background: #142433;
        box-shadow: 0 8px 18px rgba(26, 46, 63, 0.2);
        transform: scale(1.01);
    }

    .fn-submit-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .fn-fw-500 {
        font-weight: 500;
    }

    /* toast inside modal */
    .fn-modal-toast {
        position: sticky;
        bottom: 0;
        z-index: 10;
        padding: 0.8rem 0;
    }

    .fn-modal-toast .alert {
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        padding: 0.8rem 1.2rem;
        margin: 0;
        border: none;
    }

    .fn-modal-toast .alert-success {
        background: #d4edda;
        color: #155724;
        border-left: 4px solid #28a745;
    }

    .fn-modal-toast .alert-danger {
        background: #f8d7da;
        color: #721c24;
        border-left: 4px solid #dc3545;
    }

    .fn-modal-toast .alert-info {
        background: #d1ecf1;
        color: #0c5460;
        border-left: 4px solid #17a2b8;
    }

    .fn-modal-toast .fn-close-btn {
        background: none;
        border: none;
        font-size: 1.2rem;
        line-height: 1;
        color: inherit;
        opacity: 0.6;
        cursor: pointer;
        padding: 0 0 0 10px;
    }

    .fn-modal-toast .fn-close-btn:hover {
        opacity: 1;
    }