/* a {
    word-break:break-all !important; ;
     
} */

#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 {
    font-size: 2.5rem;
    line-height: 3rem;
}

/*
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: 576px) {
    .partner-logo-container {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px !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;

    }
}

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

@media (min-width: 768px) and (max-width: 992px) {
    .address-column {
        padding-left: 0 !important;
    }
}

/*
best-practices css-------------------------
*/
.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;
}

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

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

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

@media(max-width:576px) {
    #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: 600px;
    margin: 0 auto;
    margin-top: 30px;
}

.hero-search-input {
    height: calc(1.7em + 1rem + 2px);
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    line-height: 1.5;
    border-radius: 0.3rem 0 0 0.3rem;
    background: transparent;
    color: white;
    border: 1px solid #BA5C12;
    border-right: none;
}

.hero-search-button {
    height: calc(1.7em + 1rem + 2px);
    padding: 0.5rem 1.5rem;
    font-size: 1.25rem;
    border-radius: 0 0.3rem 0.3rem 0;
    background-color: #BA5C12;
    border-color: #BA5C12;
    color: white;
}

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

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

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

.content-wrapper {
    /* padding:3rem 0rem ; */
    min-height: 50vh;

}

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

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

#Team .team-img {
    width: 289px;
    height: 329px;
}

@media (max-width: 576px) {
    #Team .team-img {
        width: 100%;

    }
}

/* 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;
}

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

#page-best .nav-list {
    display: flex;
    flex-direction: column;
    font-style: normal;
    font-weight: 700;
    font-size: 19px;
    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 {
    font-size: 19px;
    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 p {
    margin-bottom: 1.2rem;
    font-size: 19px;
}

.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;
    }

}

/*  */

/* 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: 0 -2rem !important;
    }

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

    }
}

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

}

/* C&A page css----------------------------------------------------- */
.past-team-members {
    max-height: 500px;
    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;
}

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

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

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

/* digital learning vedioes------------------------------------------ */
.iframe1 iframe {
    height: 320px !important;
    width: 100% !important;
}

@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---------------------------- */

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

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

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

/* collections page css------- */
.rs-w {
    width: auto;
}

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

}

/* 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 */

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

}

@media (max-width:768px) {
    #page-controlled .border-right {
        border-bottom: 1px solid #dee2e6 !important;

    }

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

    }

    #page-controlled h4 {
        padding-bottom: 1rem;
        margin-bottom: 1.2rem;
    }

}

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

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

.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
}

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

    @media (max-width:576px) {
        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;
}

/* 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;
}

.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: 10px;
    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;
}

/* ========== 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: 769px) {

    /* ----- SEQUENCE CONTROL (desktop) – same behavior as legend ----- */
    .sequence-control-compact {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        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: 11px;
        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 */


.mobile-submenu {
    background-color: #151C45 !important;
    /* Dropdown background color */
    padding-left: 1rem;
    border-radius: 4px;
    margin-top: 0.25rem;
}


.mobile-submenu .dropdown-item {
    /* color: #9eb6cb !important;             Dropdown text color */
    color: #a9b7c3 !important;
    /* Dropdown text color */
    padding: 0.75rem 1rem;
    font-size: 1rem !important;
    font-family: "Montserrat", sans-serif;

    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    font-weight: 600 !important;
    white-space: normal !important;
    /* Allow text to wrap */
    word-wrap: break-word !important;
    /* Break long words */
    max-width: 100%;

}





/* 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);
}

/* Prevent dropdown from closing when clicking inside */
.mobile-submenu.collapsing {
    transition: none !important;
}




/* 3. FONT STYLES */
.dis-btn {
    @media (max-width:992px) {
        font-size: 1.15rem;
    }
}

.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;
    }

    /* Hide mobile submenus on desktop */
    .mobile-submenu {
        display: none !important;
    }
}

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



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

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

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

    /* Entire menu scrolls */
    #navbarResponsive {
        max-height: calc(100vh - 90px);
        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:hover,
    .mobile-language-menu .dropdown-item:focus {
        background-color: #f8f9fa;
    }

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

    /* Mobile submenu styles */
    .mobile-submenu {
        padding: 0.5rem 0;
        border-radius: 4px;
        margin-top: 0.25rem;
        display: none !important;
        /* Hidden by default, shown via JS */
    }

    .mobile-submenu.open {
        display: block !important;
    }




    .mobile-submenu .dropdown-item.active {
        background-color: #151C45 !important;
        ;
        color: #a9b7c3 !important;

    }

    .mobile-submenu .dropdown-item:hover {
        background-color: #151C45 !important;
        ;
        color: #a9b7c3 !important;

    }


    /* 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 {
    background-color: #007bff !important;
    color: white !important;
}

/* 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;
}