.lh-trending-topics {
    display: inline;
    font-size: 12px;
    color: #eee;
}

    body .lh-trending-topics a {
        color: #00ccff;
        text-decoration: none;
        margin: 0 4px;
    }

        .lh-trending-topics a:hover {
            text-decoration: underline;
        }

/* Prevent horizontal scroll bleed */
.lh-slider-wrapper {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* Ensure Swiper containers play nice with flex/grid */
.swiper-container {
    overflow: hidden;
}

/* When header is pinned, keep mega menu pinned below it */
.lh-mega-menu.is-pinned {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 90;
}
.lh-slider-outer-wrapper {
    position: relative;
    max-width: 90%;
    margin: auto;
}
.swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal {
    display: none;
}

.lh-slide-img {
    max-height: 225px;
    overflow-y: hidden;
    border-radius: 4px;
}

.swiper-slide {
    height: auto !important;
}
.lh-slide-card .cbxwpbkmarkwrap, .fl-post-grid-post .bookmarkType {
    position: absolute;
    top: -2em; /* Adjust as needed */
    right: 1em;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
    z-index: 10;
}

/* Hover Reveal */
.lh-slide-card:hover .cbxwpbkmarkwrap, .fl-post-grid-post:hover .bookmarkType {
    opacity: 1;
    transform: translateY(0);
    top: 1em; /* Adjust for visible position */
}

.lh-slide-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.lh-slider-outer-wrapper .swiper-button-prev,
.lh-slider-outer-wrapper .swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    width: 40px;
    height: 40px;
    background-color: transparent;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Position to left/right of slider */
.lh-topics-slider-outer {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .lh-topics-slider-outer .lh-topics-button-prev,
    .lh-topics-slider-outer .lh-topics-button-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 5;
        width: 40px;
        height: 40px;
        background-color: transparent;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .lh-topics-slider-outer .swiper-pagination-bullets {
        text-align: center;
        margin-top: 20px;
    }

    .lh-topics-slider-outer .swiper-pagination-bullet {
        background: #00aaff;
        opacity: 0.5;
    }

    .lh-topics-slider-outer .swiper-pagination-bullet-active {
        opacity: 1;
    }

.swiper-button-prev {
    left: var(--swiper-navigation-sides-offset, -50px) !important; /* Adjust to move further out */
}

.swiper-button-next {
    right: var(--swiper-navigation-sides-offset, -50px) !important;
}
.learning-hub-header {
    background-color: #e8f3ff;
    padding: 17px 20px;
    font-family: sans-serif;
    z-index: 60;
    position: relative; /* <-- NOT fixed by default */
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
}
#pinnedHeader-wrapper.is-pinned ~ .search-flyout.visible {
    top: 0;
}
#pinnedHeader-wrapper.is-pinned {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
}
.hs-logged-in #headerSignUp {
    display: none;
}

.sf-icon-bookmark.circle {
    background-color: #00A9E0;
    border-radius: 50px;
    padding: 10px;
    font-size: 28px;
    margin-bottom: 15px;
    display: block;
    width: fit-content;
    text-align: center;
    margin: auto;
}

#headerSignUp #headerSignUpNode {
    background-color: #ffffffde;
    color: #032148;
    padding: 30px 20px;
}

    #headerSignUp #headerSignUpNode a {
        color: #032148;
        text-decoration: underline;
    }


.lh-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lh-left {
    display: flex;
    align-items: center;
}
.lh-logo img {
    max-width: 350px;
    height: auto;
}


.lh-divider {
    height: 30px;
    width: 1px;
    background-color: #1c4a7d;
    margin: 0 15px;
}

.lh-title {
    font-weight: 600;
    color: #0099cc;
    font-size: 22px;
    white-space: nowrap;
    text-transform: uppercase;
}
.learning-hub-header .lh-left a, .learning-hub-header .lh-left a:hover {
    text-decoration: none ;
}
.lh-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lh-nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 13px;
}

.lh-pipe {
    margin: 0 8px;
    color: #aaa;
}
.lh-nav-links {
    margin-right: 40px;
}
i {
    font-weight: 400;
}
.lh-icon i {
    color: #01A9E0;
    font-weight: 400;
}
.fa-search::before {
    color: #01A9E0;
}
.lh-icon i.fa-search {
    font-size: 24px;
}
#lh-menu-toggle i {
    font-size: 29px;
}

.lh-mega-menu {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background-color: #00294d;
    color: white;
    z-index: 1000;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 40px 20px;
    min-height: 330px;
    height: 70vh;
    display: flex;
    flex-direction: column;
}

body .lh-mega-menu.hidden.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: flex !important;
}
#learning-hub-mega-menu .lh-mega-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    max-width: 1420px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
    flex-wrap: wrap;
}

.lh-mega-col {
    flex: 1 1 20%; 
    min-width: 0; 
}

#learning-hub-mega-menu .lh-mega-col h4 {
    border-bottom: 2px solid #00aaff;
    padding-bottom: 16px;
    margin-bottom: 25px;
    color: #fff;
    text-transform: uppercase;
    font-weight: 500;
}
.lh-mega-col h4 a {
  color: #fff;
}
.lh-mega-col ul {
    list-style: none;
    padding: 0;
}

.lh-mega-col li a {
    color: white;
    text-decoration: none;
    display: block;
    margin: 5px 0;
}

.lh-mega-bottom {
    border-top: 1px solid #006699;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

    .lh-mega-bottom > span {
        color: #00aaff;
    }


.pp-search-form-wrap {
    max-width: 900px;
    margin: auto;
}

    .pp-search-form-wrap form {
        overflow: hidden;
        border-radius: 50px;
    }

    .pp-search-form-wrap .pp-search-form input[type="search"] {
        padding-left: 30px;
    }

.pp-search-form .pp-search-form__submit {
    padding-left: 20px;
    padding-right: 20px;
    color: #fff;
}

    .pp-search-form .pp-search-form__submit i:before {
        color: #fff !important;
    }

.cbxwpbkmarkwrap {
    position: absolute;
    right: 15px;
    top: 10px;
}
.cbxwpbkmarktrig .cbxwpbkmarktrig-icon {
    width: 100%;
    height: 35px;
    font-family: "Font Awesome 5 Pro";
    font-size: 18px;
    z-index: 490;
    background-image: none !important;
    background-color: #A1B3CC;
    padding: 8px 10px;
    border-radius: 50px;
    border: 1.75px solid #fff;
}

.meili-search-results .cbxwpbkmarktrig .cbxwpbkmarktrig-icon {
    width: 100%;
    height: 30px;
    font-size: 15px;
    padding: 6px 8px;
}
.cbxwpbkmarkwrap_user_cat .cbxwpbkmarklistwrap, .cbxwpbkmarkwrap_global_cat .cbxwpbkmarklistwrap {
    display: none !important;
}
.meili-search-results .bookmark-placeholder .cbxwpbkmarkwrap {
    position: absolute;
    top: -2em;
    right: 1em;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
    z-index: 20;
}

.meili-search-results li:hover .cbxwpbkmarkwrap {
    opacity: 1;
    transform: translateY(0);
    top: 3px;
}

    .cbxwpbkmarktrig .cbxwpbkmarktrig-icon::before {
        content: "\f02e";
        color: #fff;
        font-weight: 400;
    }

.cbxwpbkmarktrig.cbxwpbkmarktrig-marked .cbxwpbkmarktrig-icon::before {
    content: "\f02e";
    font-weight: 900;
}


.lh-slide-card {
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.lh-slide-img img {
    width: 100%;
    height: auto;
    display: block;
}


.lh-slide-content, #ocean-facts-detail excerpt {
    padding: 15px 15px 15px 0px;
}

.lh-slide-title, #ocean-facts-detail h2 {
    font-size: 18px;
    margin: 5px 0 6px;
    color: #032148;
}

    .lh-slide-title a, #ocean-facts-detail h2 a, .lh-slide-title a:hover, #ocean-facts-detail h2 a:hover {
        color: #032148;
    }

.lh-slide-taxonomy {
    font-size: 0.85rem;
    color: #007ea7;
    text-transform: uppercase;
}

.lh-slide-excerpt {
    font-size: 14px;
}

.lh-slide-readmore, #ocean-facts-detail .btn.btn-primary.btn-sm {
    display: inline-block;
    margin-top: 10px;
    font-weight: 400;
    color: #0099cc;
    text-decoration: none;
    font-size: 14px;
    background: transparent;
    border: none;
    padding-left: 0px;
}


.lh-slider-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.lh-slider-info {
    flex: 1 1 30%;
    max-width: 30%;
    box-sizing: border-box;
}
.page-id-17808 .lh-slider-column {
    flex: 1 1 100%;
    max-width: 100%;
}
#multimedia .lh-slider-column {
    flex: 1 1 100%;
    max-width: 100%;
}
.lh-slider-column {
    flex: 1 1 60%;
    max-width: 60%;
    box-sizing: border-box;
}

    .lh-slider-info ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .lh-slider-info li a {
        display: block;
        padding: 4px 0;
        color: #007ea7;
        text-decoration: none;
        font-weight: 500;
    }

        .lh-slider-info li a:hover {
            text-decoration: underline;
        }


.list-group-item.ocean-fact-item {
    background: #ffffff;
    color: #032148;
    border: none;
    padding: 20px 20px;
}

    .list-group-item.ocean-fact-item.active {
        background: #E5F4FF;
        color: #032148;
        border-width: 0px 0px 0px 4px;
        border-color: #00A9E0;
        border-style: solid;
    }
        .list-group-item.ocean-fact-item.active, .list-group-item.ocean-fact-item.active:focus, .list-group-item.ocean-fact-item.active:hover {
            background: #E5F4FF;
        }
        .list-group-item.ocean-fact-item {
    background: transparent;
    color: #032148;
    border-style: solid;
    padding: 20px 20px;
    border-width: 0px 0px 1px 0px;
    border-top-width: 0px;
    border-color: #D8D8D8;
}
.list-group-item.ocean-fact-item .of-title {
    color: #032148;
    font-size: 18px;
    line-height: 1.4;
}

#ocean-facts-list {
    text-indent: 0px;
}
.lh-topics-slider-outer {
    position: relative;
}
.lh-topics-slider-wrapper {
    width: 100%;
    overflow-x: hidden;
    position: relative;
    padding: 0px;
}
.lh-topics-mask {
    overflow: hidden;
    max-height: 730px;
}

.lh-topics-slide-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px;
}

.lh-topics-column {
    display: flex;
    flex-direction: column;
    overflow: hidden; 
    text-align: left; 
}

.lh-topics-group {
    margin-bottom: 20px;
    break-inside: avoid;
}

.lh-topics-letter {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.lh-topics-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .lh-topics-list li {
        margin-bottom: 5px;
    }

    .lh-topics-list a {
        color: #0073aa;
        text-decoration: none;
        font-size: 14px;
        display: block;
    }

        .lh-topics-list a:hover {
            text-decoration: underline;
        }

.fl-post-image .contentType {
    color: #fff;
}

/* Swiper navigation buttons */
.swiper-button-prev, .swiper-button-next {
    color: #333;
}

#ocean-facts-list {
    cursor: pointer;
}

.ocean-fact-item.active {
    background-color: #007bff;
    color: #fff;
}
/* ========== Responsive Adjustments ========== */

.lh-menu .toggle-caret {
    display: inline-block;
    margin-right: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding-left: 5px;
    top: 5px;
    position: relative;
    height: 20px;
}
    .lh-menu .toggle-caret svg {
        transform: rotate(0deg);
        transition: transform 0.2s;
    }

    .lh-menu .toggle-caret.open svg {
        transform: rotate(180deg);
        transition: transform 0.2s;
    }

/* Hide all submenus by default */
.sidebar > ul.lh-menu.submenu ul.lh-menu.submenu {
    display: none;
}

/* Show submenu when the parent <li> has .is-open */
.lh-menu li.has-children.is-open > .lh-menu.submenu {
    display: block !important;
}


.sidebar h3 {
    text-transform: uppercase;
    font-size: 18px;
    margin-top: 15px;
}

.sidebar > ul.lh-menu.submenu, .sidebar > ul {
    padding-left: 0px;
    list-style: none;
    margin-bottom: 20px;
}

    .sidebar > ul.lh-menu.submenu > li a {
        color: #041E42;
        font-size: 13px;
        font-weight: 300;
    }

    .sidebar > ul.lh-menu.submenu > li {
        margin-bottom: 5px;
    }

        .sidebar > ul.lh-menu.submenu > li ul.lh-menu.submenu {
            list-style: none;
            padding-left: 20px;
        }

        .sidebar > ul.lh-menu.submenu > li > ul.lh-menu.submenu {
            margin-top: 5px;
            margin-bottom: 10px;
        }

    .sidebar > ul.lh-menu.submenu li.current-page > a {
        color: #00A9E0;
    }


    .sidebar > ul.lh-menu.submenu > li > ul.lh-menu.submenu > li {
        margin-bottom: 0px;
    }


        .sidebar > ul.lh-menu.submenu > li > ul.lh-menu.submenu > li > ul.lh-menu.submenu {
            margin-bottom: 10px;
        }
            .sidebar > ul.lh-menu.submenu > li > ul.lh-menu.submenu > li > ul.lh-menu.submenu > li:not(li:last-child) {
                padding-bottom: 7px;
                line-height: 1.2;
            }

.float-left {
float:left;
}


.fl-page-content-lh .nav-tabs .nav-link.active {
    background: #031C43;
    color: #fff;
    border: 0px;
    border-top-color: currentcolor;
    border-right-color: currentcolor;
    border-bottom-color: currentcolor;
    border-left-color: currentcolor;
    border-color: transparent;
}

.fl-page-content-lh .nav-tabs .nav-link {
    text-transform: uppercase;
    color: #041E42;
    font-weight: 400;
}

.fl-theme-builder-part-learning-hub-internal-page-headers .fl-content.col-md-8 #topicTabNav {
    margin: 25px 20px 0px 20px;
    margin-bottom: 0px;
}
.lh-topics-column {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: left;
}

/* Tablets and laptops (3 columns) */
@media (max-width: 1199px) {
    .lh-topics-slide-grid {
        grid-template-columns: repeat(3, 1fr); 
    }
}

/* Mobile (1 column) */
@media (max-width: 767px) {
    .lh-topics-slide-grid .lh-topics-list {
        padding-left: 0;
        text-indent: 0px;
    }

        .lh-topics-slide-grid .lh-topics-list li a {
            font-size: 13px;
            line-height: 1.2;
            padding-bottom: 5px;
        }
    .lh-topics-slide-grid {
        grid-template-columns: repeat(2, 1fr); /* Two equal-width columns */
    }
}