/* 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 */
/* ============================= */
/* Injuries Page Navigation Buttons */
/* ============================= */
#injuries-page-prev,
#injuries-page-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;
}

#injuries-page-prev:hover,
#injuries-page-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 */
#injuries-page-prev i,
#injuries-page-next i {
    color: currentColor !important;
}

#injuries-page-prev svg,
#injuries-page-next svg {
    fill: currentColor !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;
}


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


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


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


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