/* Shared responsive foundation for every Blade layout. */
html {
    overflow-x: hidden;
}

body {
    min-width: 320px;
    overflow-x: hidden;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

iframe {
    max-width: 100%;
}

.container,
.custom-container,
.custom-container-two {
    width: 100%;
}

.row>[class*="col-"] {
    min-width: 0;
}

.text-truncate,
.text-truncate-2 {
    min-width: 0;
}

.table-responsive,
.dataTables_wrapper {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    max-width: 100%;
}

.form-control,
.form-select,
.input-group {
    min-width: 0;
    max-width: 100%;
}

.tg-header__top-info {
    gap: 0.75rem 1.5rem;
}

.tg-header__top-info li {
    min-width: 0;
}

.tg-header__top-info li a,
.tg-header__top-info li:not(:has(i)) {
    overflow-wrap: anywhere;
}

.tg-header__top-info li:nth-child(2) {
    justify-content: center;
}

.tg-header__top-info li:nth-child(3) {
    justify-content: flex-end;
}

.tgmenu__nav {
    min-width: 0;
}

.tgmenu__nav .logo img,
.tgmenu__nav .head-logo {
    height: auto;
    max-width: 100%;
}

.slider__bg {
    background-position: center;
}

.hero-search-box .input-group {
    width: 100%;
}

.hero-search-box .form-control {
    min-width: 0;
}

@media (max-width: 1199.98px) {
    .tgmenu__main-menu .navigation {
        gap: 0.25rem;
    }

    .tgmenu__main-menu .navigation>li>a {
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }

    .tgmenu__nav .logo img {
        max-height: 70px !important;
    }

    .services__item-top {
        gap: 1.5rem;
    }
}

@media (max-width: 991.98px) {
    .tg-header__top {
        display: block !important;
        padding: 8px 0;
    }

    .tg-header__top-info {
        justify-content: center !important;
        flex-wrap: wrap;
        text-align: center;
        gap: 0.35rem 1rem;
        margin-bottom: 0 !important;
    }

    .tg-header__top-info li {
        justify-content: center;
        flex: 1 1 calc(50% - 1rem);
        font-size: 0.82rem;
        line-height: 1.35;
    }

    .tg-header__top-info li:nth-child(2) {
        flex-basis: 100%;
        order: 3;
    }

    .tgmenu__nav {
        gap: 1rem;
        flex-wrap: nowrap;
    }

    .tgmenu__nav .logo img,
    .tgmenu__nav .head-logo {
        max-height: 64px !important;
    }

    .slider__area,
    .slider__single,
    .slider__bg {
        min-height: 620px;
    }

    .banner__content-three {
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
    }

    .services__item-three {
        padding: 28px 22px;
    }
}

@media (max-width: 767.98px) {

    .container,
    .custom-container,
    .custom-container-two {
        padding-left: 15px;
        padding-right: 15px;
    }

    .tg-header__top {
        display: block !important;
        padding: 6px 0;
    }

    .tg-header__top-info {
        align-items: center;
        gap: 0.25rem 0.6rem;
        flex-direction: column;
    }

    .tg-header__top-info li {
        flex: 1 1 100%;
        width: 100%;
        font-size: 0.75rem;
        justify-content: center !important;
        text-align: center;
    }

    .tg-header__top-info li a {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .tg-header__top-info li i {
        font-size: 0.8rem;
    }

    .tgmenu__nav {
        padding: 7px 0;
        gap: 0.5rem;
    }

    .tgmenu__nav .logo img,
    .tgmenu__nav .head-logo {
        max-height: 56px !important;
        width: auto;
    }

    .tgmenu__action:not(.header-support-logo) {
        display: none !important;
    }

    .header-support-logo {
        display: block !important;
        flex: 0 1 82px;
        margin-left: auto;
    }

    .header-support-logo .list-wrap {
        justify-content: flex-end;
        gap: 0;
    }

    .header-support-logo .logo-img {
        width: 82px;
        max-height: 42px;
        object-fit: contain;
    }

    .mobile-nav-toggler {
        margin-left: 0;
        flex: 0 0 42px;
        width: 42px !important;
        height: 42px !important;
    }

    .tgmobile__menu {
        width: min(86vw, 320px);
        padding-right: 0;
    }

    .tgmobile__menu-box {
        height: auto;
        min-height: 0;
        max-height: calc(100vh - 24px);
        padding-bottom: 12px;
    }

    .tgmobile__menu .nav-logo {
        padding: 22px 55px 18px 22px;
    }

    .tgmobile__menu .nav-logo img {
        max-height: 45px;
    }

    .tgmobile__menu-bottom {
        display: none !important;
    }

    .slider__area,
    .slider__single,
    .slider__bg {
        min-height: 560px;
    }

    .banner__content-three {
        padding: 0 0.25rem;
    }

    .banner__content-three .title,
    .banner__content-three h2.title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        line-height: 1.12;
    }

    .banner__content-three p {
        text-align: left;
    }

    p,
    .about-desc-text,
    .tribute-bio-dark,
    .director-bio-text,
    .assoc-desc {
        text-align: left !important;
        word-spacing: normal;
    }

    .hero-search-box .input-group {
        align-items: stretch;
        flex-wrap: wrap;
        border-radius: 0.75rem !important;
    }

    .hero-search-box .input-group-text {
        padding-left: 0.75rem !important;
    }

    .hero-search-box .form-control {
        flex: 1 1 calc(100% - 3rem);
        width: calc(100% - 3rem);
    }

    .hero-search-box .btn {
        flex: 1 1 100%;
        justify-content: center;
        margin-top: 0.35rem;
        min-height: 42px;
        white-space: normal;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    h3 {
        font-size: 1.45rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .stats-row {
        flex-wrap: wrap;
    }

    .stat-block {
        flex: 1 1 50%;
        padding: 15px 10px;
    }

    .services__item-top {
        align-items: flex-start;
        gap: 1rem;
    }

    .services__item-top .sidebar__post-content {
        min-width: 0;
    }

    .event-card-footer {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 0.65rem;
    }

    .event-card-footer .btn-event-action {
        align-self: flex-start;
    }

    .profile-card,
    .expert-profile-card,
    .event-card-item {
        width: 100%;
    }

    .nav-pills {
        gap: 0.4rem;
    }

    .nav-pills .nav-link {
        padding: 9px 10px;
    }

    .download-button {
        max-width: 100%;
        white-space: normal;
    }
}

@media (max-width: 479.98px) {
    body {
        font-size: 14px;
    }

    .tgmobile__menu-box {
        width: min(88vw, 360px);
    }

    .tgmenu__nav .logo img,
    .tgmenu__nav .head-logo {
        max-width: 150px;
        max-height: 48px !important;
    }

    .header-support-logo {
        flex-basis: 68px;
    }

    .header-support-logo .logo-img {
        width: 68px;
        max-height: 36px;
    }

    .slider__area,
    .slider__single,
    .slider__bg {
        min-height: 520px;
    }

    .stat-block {
        flex-basis: 100%;
    }

    .card-grid {
        grid-template-columns: 1fr;
        padding: 12px 0;
    }

    .about-lib-card,
    .quick-links-box {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .btn,
    .download-button {
        max-width: 100%;
    }
}