/********** Template CSS **********/

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 600;
    transition: .5s;
    border-radius: 50px;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: inherit;
}

.btn-primary {
    color: var(--bs-white);
}


/*** Navbar ***/
.navbar {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 25px;
    padding: 40px 0;
    color: var(--bs-white);
    font-size: 17px;
    text-transform: uppercase;
    outline: none;
    transition: .5s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link,
    .navbar.bg-dark .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 8px;
        border-top: 1px solid var(--bs-light);
    }
}

@media (min-width: 992px) {
    .navbar.bg-dark .navbar-nav .nav-link {
        padding: 20px 0;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 100px;
    background: rgba(0, 0, 0, .7);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 550px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    padding-top: 200px;
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/carousel-1.jpg) top center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: var(--bs-white);
}


/*** Title ***/
.title {
    margin-bottom: 2rem;
}

.title .title-left,
.title .title-center,
.title .title-right {
    display: inline-block;
    text-transform: uppercase;
    overflow: hidden;
}

.title .title-center {
    text-align: center;
}

.title .title-right {
    text-align: right;
}

.title .title-left h5,
.title .title-center h5,
.title .title-right h5 {
    position: relative;
    display: inline-block;
    font-size: 18px;
    font-weight: 300;
}

.title .title-left h5::after,
.title .title-center h5::before,
.title .title-center h5::after,
.title .title-right h5::before {
    position: absolute;
    content: "";
    width: 500%;
    height: 0;
    top: 9px;
    border-bottom: 1px solid var(--bs-white);
}

.title .title-left h5::after,
.title .title-center h5::after {
    left: calc(100% + 15px);
}

.title .title-right h5::before,
.title .title-center h5::before {
    right: calc(100% + 15px);
}

.title .title-left h1,
.title .title-center h1,
.title .title-right h1 {
    border-bottom: 1px solid var(--bs-white);
}


/*** Service ***/
.service-item {
    position: relative;
    margin-top: 2.5rem;
    overflow: hidden;
}

.service-item .service-img {
    position: relative;
    display: inline-block;
}

.service-item .service-img::before {
    position: absolute;
    content: "";
    width: calc(100% - 12rem);
    height: calc(100% - 12rem);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3rem solid rgba(0, 0, 0, .5);
    border-radius: 300px;
    z-index: 1;
}

.service-item.service-item-left {
    border-radius: 500px 0 0 500px;
    background: linear-gradient(to right, var(--bs-secondary), var(--bs-dark));
}

.service-item.service-item-right {
    border-radius: 0 500px 500px 0;
    background: linear-gradient(to left, var(--bs-secondary), var(--bs-dark));
}

@media (max-width: 767.98px) {
    .service-item.service-item-left,
    .service-item.service-item-right {
        border-radius: 500px 500px 0 0;
        background: linear-gradient(to bottom, var(--bs-secondary), var(--bs-dark));
        text-align: center;
    }
}


/*** Team ***/
.team-item {
    position: relative;
}

.team-item .team-name {
    position: absolute;
    width: 100%;
    height: 60px;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .7);
}

.team-item .team-body {
    position: relative;
    overflow: hidden;
}

.team-item .team-body .team-before,
.team-item .team-body .team-after {
    position: absolute;
    content: "";
    width: 0;
    height: calc(100% - 60px);
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: .5s;
}

.team-item .team-body .team-after {
    left: auto;
    right: 0;
}

.team-item .team-body .team-before {
    text-align: right;
}

.team-item:hover .team-body .team-before,
.team-item:hover .team-body .team-after {
    width: 50%;
}

.team-item .team-body .team-before span,
.team-item .team-body .team-after span {
    margin: 5px;
    color: var(--bs-white);
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-body .team-before span,
.team-item:hover .team-body .team-after span {
    opacity: 1;
    transition-delay: .2s;
}


/*** Testimonial ***/
.testimonial-carousel {
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    margin-top: 35px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dots .owl-dot {
    width: 60px;
    height: 60px;
    margin: 0 5px;
    padding: 10px;
    background: var(--bs-dark);
    border-radius: 100px;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot img {
    opacity: .1;
    transition: .5s;
    border-radius: 100px;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}


/*** Footer ***/
@keyframes footerAnimatedBg {
	0% {
        background-position: 0 0;
    }

	100% {
        background-position: -1000px 0;
    }
}

.footer {
	background-image: url(../img/footer-bg.png);
	background-position: 0px 0px;
    background-repeat: repeat-x;
	animation: footerAnimatedBg 50s linear infinite;
}

/* =========================================================
   EVENTS & CAMPAIGN CALENDAR
   ========================================================= */
.events-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 900px;
}
.events-table thead th {
    background: #111111;
    color: #ffffff;
    border-bottom: 2px solid var(--primary);
    padding: 18px 15px;
    font-weight: 600;
    white-space: nowrap;
}
.events-table tbody td {
    padding: 16px 15px;
    vertical-align: middle;
    border-color: rgba(255,255,255,0.08);
}
.events-table tbody tr {
    transition: all 0.3s ease;
}
.events-table tbody tr:hover {
    background: rgba(255,255,255,0.06);
}
.events-table tbody td:first-child {
    white-space: nowrap;
    font-weight: 600;
}
.campaign-card {
    border-left: 3px solid var(--primary);
    transition: all 0.3s ease;
}
.campaign-card:hover {
    transform: translateY(-5px);
}
.campaign-card .campaign-date {
    display: block;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}
.campaign-card h5 {
    margin-bottom: 0;
    color: #ffffff;
}
@media (max-width: 767.98px) {
    .events-table { font-size: 14px; }
    .events-table thead th, .events-table tbody td { padding: 12px 10px; }
}


/* =========================================================
   PARTNER LOGOS SECTION
   Five horizontal rectangular logo cards per carousel slide
   ========================================================= */

#partners-carousel {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 0 15px;
}

#partners-carousel .carousel-inner {
    width: 100%;
    overflow: hidden;
}

#partners-carousel .carousel-item {
    width: 100%;
    transition: transform 0.6s ease-in-out;
}

.partner-slide-row {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.partner-slide-item {
    flex: 1 1 0;
    min-width: 0;
    max-width: 230px;
}

.partner-logo {
    width: 100%;
    height: 96px;
    background: #ffffff;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

.partner-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 185px;
    max-height: 68px;
    object-fit: contain;
}

/* Keep five cards on one horizontal line on large screens */
@media (min-width: 1200px) {
    #partners-carousel {
        max-width: 1240px;
    }

    .partner-slide-row {
        gap: 20px;
    }

    .partner-slide-item {
        flex: 0 0 230px;
    }

    .partner-logo {
        width: 230px;
        height: 96px;
    }
}

/* Medium screens */
@media (min-width: 768px) and (max-width: 1199.98px) {
    #partners-carousel {
        padding-left: 10px;
        padding-right: 10px;
    }

    .partner-slide-row {
        gap: 14px;
    }

    .partner-logo {
        height: 90px;
        padding: 9px 12px;
    }

    .partner-logo img {
        max-width: 155px;
        max-height: 62px;
    }
}

/* Small screens: preserve the horizontal card design while fitting the screen */
@media (max-width: 767.98px) {
    #partners-carousel {
        padding-left: 8px;
        padding-right: 8px;
    }

    .partner-slide-row {
        gap: 8px;
    }

    .partner-slide-item {
        flex: 1 1 0;
        max-width: none;
    }

    .partner-logo {
        height: 70px;
        padding: 7px 6px;
        border-radius: 6px;
    }

    .partner-logo img {
        max-width: 100%;
        max-height: 50px;
    }
}

/* No navigation arrows: the five-logo groups advance automatically */
#partners-carousel .carousel-control-prev,
#partners-carousel .carousel-control-next {
    display: none !important;
}


/* BLUE HORIZON TALENT - HORIZONTAL TESTIMONIAL STORIES */
.testimonial-stories-carousel {
    position: relative;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 55px 48px;
}

.testimonial-stories-carousel .carousel-inner {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.testimonial-stories-carousel .carousel-item {
    min-height: 100%;
    transition: transform 0.6s ease-in-out;
}

.testimonial-slide-card {
    width: 100%;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 45px 20px;
}

.testimonial-slide-card .testimonial-item {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
}

.testimonial-slide-card .testimonial-item > div {
    width: 100%;
}

.testimonial-stories-carousel .carousel-control-prev,
.testimonial-stories-carousel .carousel-control-next {
    width: 48px;
    opacity: 0.8;
}

.testimonial-stories-carousel .carousel-control-prev {
    left: 0;
}

.testimonial-stories-carousel .carousel-control-next {
    right: 0;
}

.testimonial-story-indicators {
    bottom: 0;
    margin-bottom: 0;
}

.testimonial-story-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    margin: 0 5px;
}

@media (max-width: 767.98px) {
    .testimonial-stories-carousel {
        padding-left: 38px;
        padding-right: 38px;
        padding-bottom: 42px;
    }

    .testimonial-slide-card {
        padding: 10px 12px 15px;
    }

    .testimonial-slide-card .testimonial-item h2 {
        font-size: 1.5rem;
    }

    .testimonial-slide-card .testimonial-item .fs-5 {
        font-size: 1rem !important;
    }

    .testimonial-slide-card .row > [class*="col-"] {
        margin-bottom: 8px;
    }
}

/* Legal Links - Bottom Right */
.legal-links {
    position: fixed;
    right: 20px;
    bottom: 15px;
    z-index: 9999;
    font-size: 13px;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.75);
    padding: 7px 12px;
    border-radius: 4px;
}

.legal-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #f5c242;
    text-decoration: underline;
}

.legal-links .separator {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 7px;
}

@media (max-width: 576px) {
    .legal-links {
        right: 10px;
        bottom: 10px;
        font-size: 11px;
        padding: 6px 9px;
    }

    .legal-links .separator {
        margin: 0 5px;
    }
}