/* Headings and common title classes overridden to Poppins on this page only */
h1,
h2,
h3,
h4,
h5,
h6,
.heading-title,
.heading-subtitle,
.hero-title,
.banner-title,
.section-title,
.fancybox-title,
.service-title,
.process-title,
.card-title,
.cta-title,
.post-title,
.portfolio-title,
.alert-title,
.custom-section-title {
    font-family: 'Poppins', sans-serif !important;
}

/* Equal-height cards for consultant section (fancyboxs-layout5) */
.fancyboxs-layout5 .fancybox-wrapper>[class^="col-"],
.fancyboxs-layout5 .fancybox-wrapper>[class*=" col-"] {
    display: flex;
}

.fancyboxs-layout5 .fancybox-item {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.fancyboxs-layout5 .fancybox-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.fancyboxs-layout5 .fancybox-body .btn {
    margin-top: auto;
}

/* Injuries carousel nav adjustments */
.fancyboxs-layout5 .swiper-button-prev-2,
.fancyboxs-layout5 .swiper-button-next-2 {
    color: #fff !important;
    /* make icons white */
    margin: 0 14px;
    /* add horizontal spacing */
    cursor: pointer;
}

/* Ensure icon fonts inside keep white color */
.fancyboxs-layout5 .swiper-button-prev-2 i,
.fancyboxs-layout5 .swiper-button-next-2 i {
    color: #fff !important;
}

/* Equal height slides for injuries carousel */
.fancyboxs-layout5 .swiper {
    overflow: visible;
}

.fancyboxs-layout5 .swiper-wrapper {
    align-items: stretch;
}

.fancyboxs-layout5 .swiper-slide {
    display: flex;
    height: auto;
}

.fancyboxs-layout5 .swiper-slide>.fancybox-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 280px;
}

.fancyboxs-layout5 .fancybox-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fancyboxs-layout5 .fancybox-title {
    flex: 0 0 auto;
    margin-bottom: 15px;
}

.fancyboxs-layout5 .fancybox-body .btn {
    margin-top: auto;
    margin-bottom: 0;
}

/* Reduce gap between section heading and carousel */
.fancyboxs-layout5 .heading-layout2 {
    margin-bottom: 30px !important;
}

.fancyboxs-layout5 .heading-layout2 .heading-title {
    margin-bottom: 0 !important;
}

.fancyboxs-layout5 .heading-layout2 .heading-subtitle {
    margin-bottom: 4px !important;
}

.fancyboxs-layout5 .swiper {
    margin-top: 0 !important;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}


.btn-primary {
    background-color: #0b2147 !important;
    color: #fff !important;
    border-color: #0b2147 !important;
}

.heading-subtitle {
    color: #0b2147 !important;
}




/* SECTION LAYOUT */
.fancyboxs-layout5 {
    margin-bottom: 0;
    position: relative;
}

/* Make container edge-to-edge inside this section so cards start from section edge */
.fancyboxs-layout5 .container {
    padding-left: 0;
    padding-right: 30px;
    max-width: 100%;
}

/* SWIPER / WRAPPER adjustments to remove left gap */
.fancyboxs-layout5 .swiper {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.fancyboxs-layout5 .fancybox-wrapper {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* CARD STYLING */
.fancybox-item {
    background: rgba(255, 255, 255, 0.03);
    /* subtle card bg over video */
    /* border-radius: 8px; */
    /* overflow: hidden; */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 280px;
    padding: 50px 12px;
    box-sizing: border-box;
}

.fancybox-icon {
    font-size: 34px;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.fancybox-body {
    text-align: center;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* TITLE: no text truncation - allow full text to display, white by default */
.fancyboxs-layout5 .fancybox-title {
    color: #fff;
    font-size: 16px;
    line-height: 1.4;
    margin: 20px 0 12px;
    display: block;
    overflow: visible;
    word-break: break-word;
    text-align: center;
}

/* EXPLORE MORE button spacing */
.fancybox-body .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    margin-bottom: 18px;
    /* added bottom margin as requested */
    padding: 8px 14px;
}

/* NAVIGATION: unified circular controls */
/* ============================= */
/* Portfolio Navigation Buttons */
/* ============================= */
#portfolio-prev,
#portfolio-next {
    background: rgb(255, 255, 255);
    color: rgb(26, 2, 2) !important;
    margin-right: 20px;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 50;
    transition: all 0.3s ease;
}

#portfolio-prev:hover,
#portfolio-next:hover {
    background: rgb(255, 255, 255);
    color: rgb(0, 0, 0) !important;
    box-shadow: 0 0 10px rgba(11, 33, 71, 0.25);
}


/* ============================= */
/* Article Navigation Buttons */
/* ============================= */
#article-prev,
#article-next {
    background: rgb(255, 255, 255);
    color: rgb(255, 255, 255) !important;
    margin-right: 20px;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 50;
    transition: all 0.3s ease;
}

#article-prev:hover,
#article-next:hover {
    background: rgb(255, 255, 255);
    color: rgb(0, 0, 0) !important;
    box-shadow: 0 0 10px rgba(11, 33, 71, 0.25);
}


/* Ensure inner icons inherit */
#portfolio-prev i,
#portfolio-next i,
#article-prev i,
#article-next i {
    color: currentColor !important;
}

#portfolio-prev svg,
#portfolio-next svg,
#article-prev svg,
#article-next svg {
    fill: currentColor !important;
}


/* Make icon visible when hover effect activates */
.fancybox-item:hover .fancybox-icon i {
    color: rgb(253, 254, 255) !important;
    transition: color 0.3s ease;
}


.portfolio-body {
    height: 200px;
    margin-right: 10px;
}

#article-next,
#article-prev {
    background-color: #0b2147;
    color: #fff;
    padding: 10px;
    border-radius: 50%;
    margin: 10px
}


/* Icon size consistency */
#portfolio-next::before,
#portfolio-prev::before,
#article-next::before,
#article-prev::before {
    font-size: 20px;
}


/* Ensure right-side gutter so last card doesn't touch edge */
.swiper-controls-light {
    padding-right: 16px;
}

.blog-layout1 .swiper {
    padding-right: 16px;
}


/* Banner layout 6 on gray: primary cards with white text/icons */
.banner-layout6.bg-gray .fancyboxs-layout1 .fancybox-item {
    background: #0b2147;
    border: 1px solid #0b2147;
}

.banner-layout6.bg-gray .fancyboxs-layout1 .fancybox-title,
.banner-layout6.bg-gray .fancyboxs-layout1 .fancybox-desc {
    color: #fff !important;
}

.banner-layout6.bg-gray .fancyboxs-layout1 .fancybox-icon i {
    color: #fff !important;
}

.banner-layout6.bg-gray .heading-layout2 .heading-title,
.banner-layout6.bg-gray .heading-layout2 .heading-desc {
    color: #0b2147 !important;
}

.banner-layout6.bg-gray .heading-layout2 .heading-subtitle span {
    background: #0b2147 !important;
    color: #fff !important;
}

.fancybox-item:hover .fancybox-icon i {
    color: #0b2147 !important;
    transition: color 0.3s ease;
}

.fancybox-item:hover .fancybox-title {
    color: #1a3c7c;
    /* hover color (slightly lighter shade) */
}

/* CTA Section Styling */
.cta-section {
    background-color: #0b2147 !important;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0b2147 0%, #1a3c7c 100%);
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.cta-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.detail-item {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.detail-label {
    font-size: 1rem;
    min-width: 80px;
}

.detail-value {
    font-size: 1rem;
    flex: 1;
}

.cta-note {
    font-size: 0.95rem;
    opacity: 0.8;
}

.cta-note a {
    color: #fff !important;
    text-decoration: underline;
    font-weight: 600;
}

.cta-note a:hover {
    color: #f8f9fa !important;
    text-decoration: none;
}

.cta-btn {
    background-color: var(--color-white) !important;
    border-color: var(--color-white) !important;
    color: #0b2147 !important;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0 !important;
    box-shadow: 0 4px 15px rgba(11, 33, 71, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.cta-btn:hover {
    background-color: #f8f9fa !important;
    border-color: #f8f9fa !important;
    color: #0b2147 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 33, 71, 0.4);
}

.cta-btn .arrow-flip {
    transition: transform 0.3s ease;
}

/* CTA table with full grid borders on dark background */
.cta-table {
    border-collapse: collapse;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
}

.cta-table th,
.cta-table td {
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 0.75rem;
    vertical-align: top;
}

.cta-table th {
    white-space: nowrap;
    width: 140px;
}

.cta-btn:hover .arrow-flip {
    transform: translateX(3px);
}

/* Member Link Styling */
.member-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.member-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-5px);
}

.member-link:hover .member {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}


/* Responsive Design */
@media (max-width: 768px) {
    .cta-title {
        font-size: 2rem;
    }

    .cta-desc {
        font-size: 1rem;
    }

    .detail-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .detail-label {
        min-width: auto;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}