/*--Site CSS (project-specific overrides; prefer this over main/pages-custom)--*/

/* Blog detail banner image */
.ibf-blog-detail-banner {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    background: #1c1814;
    overflow: visible;
    z-index: 3;
}

/* Event detail keeps the taller banner from the mock, with the image still
   visible below the meta row instead of the content sitting on the bottom edge. */
.ibf-blog-detail-banner.events-banner {
    min-height: 760px;
    align-items: flex-start;
}

@media screen and (max-width: 767.98px) {
    .ibf-blog-detail-banner.events-banner {
        min-height: auto;
    }
}

.ibf-blog-detail-banner-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.ibf-blog-detail-banner-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transform: scale(1.02);
}

.ibf-blog-detail-banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(28, 24, 20, 0.35) 0%, rgba(28, 24, 20, 0.55) 45%, rgba(28, 24, 20, 0.82) 100%);
    pointer-events: none;
}

.ibf-blog-detail-banner > .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Force readable white text on banner (title / meta) */
.ibf-blog-detail-banner .banner-content,
.ibf-blog-detail-banner .banner-content.white,
.ibf-blog-detail-banner .section-header,
.ibf-blog-detail-banner .pageTitle h1,
.ibf-blog-detail-banner .ibf-master-banner-item p,
.ibf-blog-detail-banner .ibf-master-banner-item a,
.ibf-blog-detail-banner .backto-page a {
    color: #ffffff !important;
}

.ibf-blog-detail-banner .ibf-master-banner-label {
    color: #a7cb19 !important;
}

/* Single arrow for BACK TO Blogs (avoid FA double-icon) */
.ibf-blog-detail-banner .backto-page a {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    letter-spacing: 4px;
}

.ibf-blog-detail-banner .backto-page a::before {
    content: "\2190";
    font-size: 18px;
    letter-spacing: 0;
    line-height: 1;
    flex-shrink: 0;
}

.ibf-blog-detail-banner .backto-page a i,
.ibf-blog-detail-banner .backto-page a svg {
    display: none !important;
}

/* Share panel — open upward so it is not clipped by next section */
.ibf-blog-detail-banner .ibf-master-banner-buttons,
.ibf-blog-detail-banner .ibf-master-banner-wrap,
.ibf-blog-detail-banner .ibf-master-banner-container {
    overflow: visible;
    position: relative;
    z-index: 5;
}

.ibf-blog-share {
    position: relative;
    display: inline-block;
    z-index: 30;
}

.ibf-blog-share .custom-button {
    border: 0;
}

.ibf-blog-share-panel {
    position: absolute;
    bottom: calc(100% + 12px);
    top: auto;
    right: 0;
    min-width: 220px;
    padding: 10px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(28, 24, 20, 0.18);
    z-index: 50;
}

.ibf-blog-share-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0;
    background: transparent;
    color: #342c25;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ibf-blog-share-option:hover,
.ibf-blog-share-option:focus {
    background: #f5f5f5;
    outline: none;
}

.ibf-blog-share-option i {
    width: 18px;
    text-align: center;
    color: #e77d36;
}

/* Keep following content below the open share menu */
.ibf-blog-detail-content {
    position: relative;
    z-index: 1;
    text-align: left;
}

.ibf-blog-detail-content .pageTitle {
    text-align: center;
}

.ibf-blog-detail-body {
    color: #342c25;
    line-height: 1.7;
}

.ibf-blog-detail-body p {
    margin-bottom: 1.25rem;
}

.ibf-blog-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.ibf-blog-detail-summary {
    font-weight: 600;
    margin-bottom: 2rem;
}

.ibf-blog-detail-author {
    border-top: 1px solid #e5e5e5;
    padding-top: 1.5rem;
}

.ibf-blog-detail-author strong {
    display: block;
    margin-bottom: 0.35rem;
}

.ibf-blog-detail-author p {
    margin: 0;
    color: #6c757d;
}

@media screen and (max-width: 767.98px) {
    .ibf-blog-detail-banner {
        min-height: 360px;
    }

    .ibf-blog-share-panel {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        min-width: 200px;
    }
}

/* Awards widget: card wrappers that are real links */
a.teambox,
a.client-box {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.teambox:hover,
a.teambox:focus,
a.client-box:hover,
a.client-box:focus {
    text-decoration: none;
    color: inherit;
}

/* Event detail Overview — truncate long content with Read more */
.EventDetSection1 .ibf-event-overview-body.is-clamped {
    max-height: var(--ibf-overview-max-height, 12.5em);
    overflow: hidden;
}

.EventDetSection1 .readmore-btn {
    display: inline-block;
    margin-top: 0.35em;
    color: #a7cb19;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.EventDetSection1 .readmore-btn:hover,
.EventDetSection1 .readmore-btn:focus {
    color: #e77d36;
}

/* Keep thumbnail column width when image is missing */
.ibf-eventlist-thumb {
    flex-shrink: 0;
}

/* Push Learn More to the right of the list row */
.ibf-eventlist-btn {
    margin-left: auto;
    flex-shrink: 0;
}

/* Blog/event list: keep status date and title on the same left edge
   (Sitefinity / global h3 padding can shift the heading). */
.ibf-eventlist-content {
    text-align: left;
}

.ibf-eventlist-content .ibf-eventlist-status,
.ibf-eventlist-content .ibf-eventlist-status span,
.ibf-eventlist-content h3 {
    display: block;
    margin-left: 0 !important;
    margin-right: 0;
    padding-left: 0 !important;
    padding-right: 0;
    text-indent: 0 !important;
    text-align: left;
    box-sizing: border-box;
}

.ibf-eventlist-content .ibf-eventlist-status {
    margin-top: 0;
    margin-bottom: 8px;
    padding-top: 0;
    padding-bottom: 0;
}

.ibf-eventlist-content h3 {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0 !important;
}

/* Event-style pagination (match events.html pagination-style2) */
.ibf-pagination .pagination.pagination-style2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: "Kumbh Sans", sans-serif;
    font-weight: 700;
    color: #333333;
}

.ibf-pagination .pagination.pagination-style2 .page-item {
    padding: 0 5px;
    list-style: none;
}

.ibf-pagination .pagination.pagination-style2 .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    padding: 0;
    margin: 0;
    border: 1px solid #e9ecef;
    border-radius: 50px;
    background: #fff;
    color: #333333;
    font-size: 21px;
    font-weight: 600;
    line-height: 1;
    box-shadow: none;
    text-decoration: none;
}

.ibf-pagination .pagination.pagination-style2 .page-item .page-link:hover,
.ibf-pagination .pagination.pagination-style2 .page-item .page-link:focus {
    background: linear-gradient(180deg, #a7cb19 50%, #f3ff12 100%);
    border-color: transparent;
    color: #333333;
    outline: none;
}

.ibf-pagination .pagination.pagination-style2 .page-item .page-link.no-url {
    border: none;
    background: transparent;
    cursor: default;
}

.ibf-pagination .pagination.pagination-style2 .page-item .page-link.no-url:hover {
    background: transparent;
}

.ibf-pagination .pagination.pagination-style2 .page-item .page-link.prev,
.ibf-pagination .pagination.pagination-style2 .page-item .page-link.next {
    color: #000000;
    border-color: #000000;
    background: #fff;
    font-size: 18px;
}

.ibf-pagination .pagination.pagination-style2 .page-item .page-link.prev:hover,
.ibf-pagination .pagination.pagination-style2 .page-item .page-link.next:hover {
    background: #000000 !important;
    border-color: #000000;
    color: #ffffff;
}

.ibf-pagination .pagination.pagination-style2 .page-item.active .page-link {
    background: linear-gradient(180deg, #a7cb19 50%, #f3ff12 100%);
    border-color: transparent;
    color: #333333;
}

.ibf-pagination .pagination.pagination-style2 .page-item.disabled .page-link {
    opacity: 0.45;
    pointer-events: none;
}

@media screen and (max-width: 1599.98px) {
    .ibf-pagination .pagination.pagination-style2 .page-item .page-link {
        width: 50px;
        height: 50px;
        font-size: 17px;
    }

    .ibf-pagination .pagination.pagination-style2 .page-item .page-link.prev,
    .ibf-pagination .pagination.pagination-style2 .page-item .page-link.next {
        font-size: 15px;
    }
}

@media screen and (max-width: 575.98px) {
    .ibf-pagination .pagination.pagination-style2 .page-item .page-link {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* Member List — Template Profile Slider (page-for-individuals design) */
.member-profile-slider.career-profile-slider-bg-White,
.member-profile-slider.career-profile-slider-bg-Brown-Tint-10 {
    padding: 0;
    margin: 0;
}

.member-profile-slider.career-profile-slider-bg-White {
    background: #fff;
}

.member-profile-slider.career-profile-slider-bg-Brown-Tint-10 {
    background: #f0eeec;
}

.member-profile-slider .slider.profile-slider-item {
    padding: 0;
}

.member-profile-slider .profile-slider-item .slick-track {
    display: flex !important;
    align-items: stretch;
}

.member-profile-slider .profile-slider-item .slick-slide {
    height: auto;
    display: flex;
}

.member-profile-slider .profile-slider-item .slider-slide,
.member-profile-slider .profile-slider-item .slick-slide > div {
    width: 100%;
    display: flex;
}

.member-profile-slider .profile-slider-item .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    text-align: center;
}

.member-profile-slider .profile-slider-item .item img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 10px !important;
}

.member-profile-slider .profile-slider-item .item p,
.member-profile-slider .profile-slider-item .item .text {
    margin-bottom: 15px !important;
}

.member-profile-slider .profile-slider-item .item .title {
    font-size: 19px;
    line-height: 26px;
    text-align: center;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
}

.member-profile-slider .profile-slider-item .item .sub-title {
    font-size: 13px;
    line-height: 26px;
    text-align: center;
    color: #777;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
}

.member-profile-slider .profile-slider-item .item .text {
    font-style: italic;
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    text-align: center;
    color: #555;
    width: 100%;
}

.member-profile-slider .profile-slider-item .item .text p {
    margin-bottom: 0 !important;
    font-style: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

/* IBF News Shared — Article cards (image) */
.ibf-news-article-vertical .careers-connect .group-item .left-img {
    position: relative;
    min-height: 180px;
}

.ibf-news-article-vertical .careers-connect .group-item .left-img img {
    width: calc(100% - 20px);
    height: 100%;
    position: absolute;
    left: 10px;
    top: 0;
    object-fit: cover;
}

.ibf-news-article-vertical .careers-connect .group-item .item .bg-wrapper {
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    height: 100%;
}

.ibf-news-article-vertical .careers-connect .group-item .right-text {
    padding-right: 16px;
}

.ibf-news-article-vertical .careers-connect .group-item .right-text .first-title {
    font-size: 20px;
    line-height: 24px;
    color: #6b5a4d;
    margin: 0;
    padding-top: 29px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    font-weight: 700;
}

.ibf-news-article-vertical .careers-connect .group-item .right-text .second-title {
    font-style: italic;
    font-weight: 400;
    font-size: 17px;
    line-height: 24px;
    min-height: 35px;
    color: #6b5a4d;
    padding: 0 0 10px;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
}

.ibf-news-article-vertical .careers-connect .group-item .right-text .text {
    padding: 10px 0 30px;
    font-size: 17px;
    line-height: 24px;
    color: #271c0e;
    min-height: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
}

.ibf-news-article-vertical .careers-connect .group-item .right-text .find-more-link {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 26px;
}

.ibf-news-article-vertical .careers-connect .group-item .right-text .find-more-link a {
    font-size: 17px;
    line-height: 24px;
    text-align: right;
    color: #a7cb19;
    padding-right: 30px;
}

.ibf-news-article-vertical .careers-connect .group-item .right-text .find-more-link a:hover {
    text-decoration: none;
}

@media only screen and (max-width: 767px) {
    .ibf-news-article-vertical .careers-connect .group-item .left-img {
        padding-top: 64%;
        min-height: 0;
    }

    .ibf-news-article-vertical .careers-connect .group-item .left-img img {
        aspect-ratio: 1.4;
    }

    .ibf-news-article-vertical .careers-connect .group-item .right-text .first-title,
    .ibf-news-article-vertical .careers-connect .group-item .right-text .second-title,
    .ibf-news-article-vertical .careers-connect .group-item .right-text .text {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* IBF Blog Shared – listing grid cards with image */
.ibf-blog-listing-grid .media-box.alt .media-image {
    width: 100%;
}

.ibf-blog-listing-grid .media-box.alt .media-image .img-holder {
    width: 100%;
    padding-bottom: 62%;
}


/* ========== IBF Annual Reports ========== */
.ibf-annual-reports {
    padding: 48px 0 80px;
    color: #271c0e;
}

.ibf-ar-featured {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
    gap: 40px 48px;
    align-items: start;
    margin-bottom: 56px;
}

.ibf-ar-featured-title {
    margin: 0 0 16px;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    line-height: 1.25;
    font-weight: 700;
    color: #271c0e;
}

.ibf-ar-featured-subject {
    margin: 0 0 12px;
    font-size: clamp(1.15rem, 1.6vw, 1.4rem);
    line-height: 1.35;
    font-weight: 600;
    color: #464749;
}

.ibf-ar-featured-desc {
    margin: 0 0 28px;
    font-size: 1rem;
    line-height: 1.6;
    color: #464749;
}

.ibf-ar-featured-desc p {
    margin: 0 0 0.75rem;
}

.ibf-ar-featured-desc p:last-child {
    margin-bottom: 0;
}

.ibf-ar-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.ibf-ar-action {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #464749;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.ibf-ar-action:hover,
.ibf-ar-action:focus {
    color: #a7cb19;
}

.ibf-ar-action-icon {
    display: inline-flex;
    color: #749800;
    flex-shrink: 0;
}

.ibf-ar-featured-media {
    width: 100%;
    max-width: 460px;
    margin-left: auto;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #f4f4f4;
}

.ibf-ar-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ibf-ar-past {
    margin-top: 8px;
}

.ibf-ar-past-title {
    margin: 0 0 28px;
    font-size: clamp(1.35rem, 1.8vw, 1.625rem);
    line-height: 1.25;
    font-weight: 700;
    color: #271c0e;
}

.ibf-ar-loadmore {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.ibf-ar-loadmore .custom-button[disabled] {
    opacity: 0.65;
    pointer-events: none;
}

.ibf-ar-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 24px;
}

.ibf-ar-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid #e6e7e8;
    height: 100%;
}

.ibf-ar-card-media {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f4f4f4;
    border-bottom: 1px solid #e6e7e8;
}

.ibf-ar-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ibf-ar-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 18px 20px;
}

.ibf-ar-card-title {
    margin: 0 0 20px;
    font-size: 1.1rem;
    line-height: 1.35;
    font-weight: 700;
    text-align: center;
    color: #271c0e;
}

.ibf-ar-card-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ibf-ar-card-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ibf-ar-card-action-row > span {
    font-size: 1rem;
    line-height: 1.4;
    color: #6b5a4d;
}

.ibf-ar-card-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #749800;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.ibf-ar-card-icon-link:hover,
.ibf-ar-card-icon-link:focus {
    color: #a7cb19;
    transform: scale(1.08);
}

@media screen and (max-width: 1199.98px) {
    .ibf-ar-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 991.98px) {
    .ibf-ar-featured {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
        gap: 28px 32px;
        margin-bottom: 40px;
    }

    .ibf-ar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 20px;
    }
}

@media screen and (max-width: 767.98px) {
    .ibf-annual-reports {
        padding: 32px 0 56px;
    }

    .ibf-ar-featured {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 32px;
    }

    .ibf-ar-featured-media {
        max-width: 320px;
        margin: 0 auto;
        order: -1;
    }

    .ibf-ar-actions {
        gap: 14px;
    }

    .ibf-ar-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 360px;
        margin: 0 auto;
    }
}

/* Quick Search — mobile only: keep close visible; contain AI Overview text */
@media screen and (max-width: 767.98px) {
    .quickSearch .modal-dialog {
        padding-top: 30px;
    }

    .quickSearch .modal-dialog .modal-content {
        max-height: calc(100vh - 4rem);
        max-height: calc(100dvh - 4rem);
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    .quickSearch .modal-dialog .modal-content form {
        flex: 1 1 auto;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .quickSearch .add-notes {
        max-width: 100%;
        min-width: 0;
    }

    .quickSearch .add-notes .note-box {
        overflow-x: hidden;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .quickSearch .add-notes .note-box,
    .quickSearch .add-notes .note-box * {
        overflow-wrap: anywhere;
        word-break: break-word;
        max-width: 100%;
    }

    .quickSearch .add-notes .note-box a {
        word-break: break-all;
    }
}

/* FAQ search - no results message */
.faq-no-results {
    padding: 20px 0;
    text-align: center;
    font-size: 16px;
    color: #6c757d;
}

/* IBF accordion - wide content (e.g. tables) scrolls horizontally instead of overflowing */
[data-ibf-accordion] .accordion-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767.98px) {
    [data-ibf-accordion] .accordion-body table {
        width: max-content !important;
        min-width: 100%;
        max-width: none !important;
    }
}

/* Testimonials - "Read More" link in thumbnail strip (theme only styles span) */
.testimonial-thumb .float-div .content a {
    font-weight: 600;
    color: #e77d36;
    text-decoration: underline;
}

