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

/* Skip link: visible on keyboard focus */
.skip-link {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    z-index: 100000;
    padding: 0.5rem 1rem;
    background: var(--bs-primary);
    color: #fff !important;
    border-radius: 0.25rem;
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Brand wordmark: light span on primary bar (was text-dark = poor contrast) */
.brand-bar .brand-accent,
.bg-primary > .container .h1 .brand-accent {
    color: #fff !important;
    margin-left: 0.18em;
}

.brand-bar .h1 {
    font-size: clamp(1.75rem, 2.4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Mobile navbar brand: keep wordmark on one line, force magenta over .navbar-light */
.navbar-brand .text-primary,
.navbar-brand .brand-accent {
    white-space: nowrap;
    color: var(--bs-primary) !important;
}
.navbar-brand .brand-accent {
    margin-left: 0.18em;
}

/* Mobile: make the sticky navbar magenta to match the brand bar (white header feels off-brand) */
@media (max-width: 991.98px) {
    .navbar.navbar-light.bg-white,
    .sticky-top > .container-fluid.sticky-top,
    .container-fluid.sticky-top {
        background: var(--bs-primary) !important;
    }
    .container-fluid.sticky-top > .container {
        background: var(--bs-primary) !important;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    .navbar.navbar-light.bg-white .navbar-brand .text-primary,
    .navbar.navbar-light.bg-white .navbar-brand .brand-accent,
    .navbar.navbar-light.bg-white .navbar-toggler-icon {
        color: #fff !important;
    }
    .navbar.navbar-light.bg-white .navbar-nav .nav-link {
        color: #fff;
    }
    .navbar.navbar-light.bg-white .navbar-nav .nav-link:hover,
    .navbar.navbar-light.bg-white .navbar-nav .nav-link.active {
        color: #fff;
        opacity: 0.9;
    }
    .navbar.navbar-light.bg-white .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.6);
    }
    .navbar.navbar-light.bg-white .navbar-toggler-icon {
        filter: invert(1);
    }
}

.brand-bar .h1:hover,
.brand-bar .h1:focus-visible {
    color: #fff;
    text-decoration: none;
}

/* Accreditation trust badges (APP + VILAC logos) */
.accredit-badges {
    row-gap: 1rem;
}
.accredit-badge {
    height: 64px;
    width: auto;
    border: 1px solid var(--bs-border-color, #dbe4f2);
    border-radius: 8px;
    padding: 6px 10px;
    background: #fff;
}
.accredit-badge:first-child {
    height: 72px;
}


/* Readable body text (bootstrap body color is too light gray) */
body {
    color: #4a5168;
}

/* Anchor targets under sticky navbar */
section[id] {
    scroll-margin-top: 100px;
}

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

.fw-medium {
    font-weight: 500;
}


/*** 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 {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--bs-light);
}

.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--bs-dark);
}

.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;
    border-radius: 50px;
    font-weight: normal;
}

/*
 * Icon mark = favicon language (solid brand disc + centred white glyph).
 * Same mark on: services, preparation, contact rows, about tile (inverse).
 */
.icon-box-primary,
.icon-box-light {
    --icon-box-size: 3.75rem;
    --icon-glyph-size: 1.35rem;
    box-sizing: border-box;
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: var(--icon-box-size) !important;
    height: var(--icon-box-size) !important;
    min-width: var(--icon-box-size) !important;
    min-height: var(--icon-box-size) !important;
    max-width: var(--icon-box-size);
    max-height: var(--icon-box-size);
    margin: 0 0 1.25rem 0;
    padding: 0 !important;
    flex-shrink: 0;
    border-radius: 50% !important;
    line-height: 0;
    vertical-align: middle;
    overflow: hidden;
    z-index: 2;
    transition: background-color .3s ease, box-shadow .3s ease, color .3s ease;
}

/* Kill old Labsky corner-blob ::before entirely */
.icon-box-primary::before,
.icon-box-light::before {
    content: none !important;
    display: none !important;
}

/* Favicon match: brand blue disc */
.icon-box-primary {
    background: var(--bs-primary) !important;
    box-shadow: 0 4px 14px rgba(160, 82, 126, 0.28);
}

/* Inverse on blue fields (contact strips, about gallery tile) */
.icon-box-light {
    background: #fff !important;
    box-shadow: 0 4px 14px rgba(3, 27, 78, 0.12);
    margin-bottom: 0;
}

/* Glyph dead-centre — no absolute, no transform drift */
.icon-box-primary i,
.icon-box-light i,
.icon-box-primary i.text-dark,
.icon-box-light i.text-dark,
.icon-box-primary i.fs-1,
.icon-box-primary i.fs-2,
.icon-box-light i.fs-1,
.icon-box-light i.fs-2 {
    /* relative + tiny top nudge keeps glyph optically centred in the disc */
    position: relative !important;
    top: -0.05em;
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: var(--icon-glyph-size) !important;
    line-height: 1 !important;
    transform: none !important;
    -webkit-font-smoothing: antialiased;
}

.icon-box-primary i,
.icon-box-primary i.text-dark {
    color: #fff !important;
}

.icon-box-light i,
.icon-box-light i.text-dark {
    color: var(--bs-dark) !important;
}

/* Services + preparation feature cards — slightly larger favicon discs */
.service-item .icon-box-primary,
.feature-item .icon-box-primary,
.feature .icon-box-primary {
    --icon-box-size: 4.5rem;
    --icon-glyph-size: 1.55rem;
    margin: 0 0 1.35rem 0 !important;
}

/* Contact Address / Phone / Email rows */
.contact-line,
.d-flex.align-items-start.contact-line {
    align-items: flex-start !important;
}

.contact-line > .icon-box-primary,
.contact-line > .icon-box-light,
.d-flex.align-items-start > .icon-box-primary,
.d-flex.align-items-start > .icon-box-light {
    --icon-box-size: 3.25rem;
    --icon-glyph-size: 1.15rem;
    margin: 0.1rem 0 0 0 !important;
}

.contact-line > .ms-3,
.d-flex.align-items-start > .ms-3 {
    min-width: 0;
    flex: 1;
}

/* Contact page top strips */
.contact-info .icon-box-light {
    --icon-box-size: 3.75rem;
    --icon-glyph-size: 1.3rem;
    margin: 0 !important;
}

/* Service card hover: circle stays circular, shifts to dark */
.service-item:hover .icon-box-primary {
    background: var(--bs-dark) !important;
    box-shadow: 0 4px 14px rgba(3, 27, 78, 0.35);
}

.service-item:hover .icon-box-primary i {
    color: #fff !important;
}


/*** Navbar ***/
.sticky-top {
    top: 0;
    transition: .3s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 20px 0;
    color: var(--bs-dark);
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 4px;
    border-radius: 2px;
}

.dropdown-item:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: -2px;
}

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

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

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

    .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .sticky-top {
        margin-top: -34px;
    }

    .navbar {
        height: 68px;
    }

    .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;
    }
}


/*** Header ***/
@media (min-width: 992px) {
    .home-hero,
    .header-carousel,
    .page-header {
        margin-top: -34px;
    }
}

/* Homepage full-bleed hero */
.home-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(92vh, 820px);
    overflow: hidden;
    color: #fff;
}

.home-hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    z-index: 0;
}

.home-hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        105deg,
        rgba(3, 27, 78, 0.88) 0%,
        rgba(3, 27, 78, 0.62) 42%,
        rgba(3, 27, 78, 0.28) 100%
    );
}

.home-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 4.5rem 0 5rem;
}

.home-hero-copy {
    max-width: 36rem;
}

.home-hero-brand {
    margin: 0 0 1rem;
    font-size: clamp(2.4rem, 6vw, 4.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #fff;
    text-wrap: balance;
}

.home-hero-brand .brand-accent {
    color: rgba(255, 255, 255, 0.88);
}

.home-hero-lead {
    margin: 0 0 1.75rem;
    max-width: 32rem;
    font-size: 1.125rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.home-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.home-hero-search {
    max-width: 34rem;
    margin: 0 0 1.75rem;
}
.home-hero-search .form-control,
.home-hero-search .input-group-text {
    border: none;
    border-radius: 0;
}
.home-hero-search .btn {
    border-radius: 0;
}

.home-hero-ctas .btn {
    margin: 0;
}

@media (max-width: 991.98px) {
    .home-hero {
        min-height: min(70vh, 560px);
        margin-top: 0;
    }

    .home-hero-media {
        object-position: center 30%;
    }

    .home-hero-content {
        padding: 3.25rem 0 4rem;
    }
}

@media (max-width: 575.98px) {
    .home-hero {
        min-height: 70vh;
    }

    .home-hero-ctas .btn {
        width: 100%;
        text-align: center;
    }
}

/* Homepage department index (name + one-line blurb, no icon cards) */
.dept-index-intro {
    max-width: 36rem;
    margin-bottom: 2rem;
}

.dept-index {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
    row-gap: 0;
    border-top: 1px solid rgba(3, 27, 78, 0.12);
}

.dept-index li {
    border-bottom: 1px solid rgba(3, 27, 78, 0.12);
}

.dept-index a {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0.15rem;
    color: inherit;
    text-decoration: none;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.dept-index-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.dept-index-name {
    color: var(--bs-dark);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.dept-index-blurb {
    color: #5a6278;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.45;
}

.dept-index a::after {
    content: "\2192";
    flex-shrink: 0;
    margin-top: 0.15rem;
    font-size: 1rem;
    font-weight: 400;
    color: var(--bs-primary);
    opacity: 0.85;
}

.dept-index a:hover,
.dept-index a:focus-visible {
    padding-left: 0.35rem;
}

.dept-index a:hover .dept-index-name,
.dept-index a:focus-visible .dept-index-name {
    color: var(--bs-primary);
}

.dept-index a:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

@media (max-width: 767.98px) {
    .dept-index {
        grid-template-columns: 1fr;
        column-gap: 0;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(3, 27, 78, .82), rgba(3, 27, 78, .42));
    z-index: 1;
}

.carousel-caption p {
    text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}

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

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 3.5rem;
    background-color: var(--bs-primary);
    border: 15px solid var(--bs-primary);
}

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

.page-header {
    background:
        linear-gradient(135deg, rgba(3, 27, 78, .82), rgba(160, 82, 126, .55)),
        url(../img/lab-banner.jpg) center center no-repeat;
    background-size: cover;
}

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

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--bs-white);
}


/*** Features ***/
.feature {
    background: linear-gradient(rgba(3, 27, 78, .3), rgba(3, 27, 78, .3)), url(../img/reception.webp) left center no-repeat;
    background-size: cover;
}

.feature-row {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.feature-item {
    border-color: rgba(0, 0, 0, .03) !important;
}

.experience .progress {
    height: 5px;
}

.experience .progress .progress-bar {
    width: 0px;
    transition: 3s;
}

.experience .nav-pills .nav-link {
    color: var(--dark);
}

.experience .nav-pills .nav-link.active {
    color: #FFFFFF;
}

.experience .tab-content hr {
    width: 30px;
}


/*** About ***/
/* 2×2 photo + blue tile: equal cells, no broken h-100/mt-n5 drift */
.about-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.about-gallery > * {
    min-width: 0;
    min-height: 0;
}

.about-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-gallery-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    background: var(--bs-primary);
    /* subtle inset so tile lines up with photo edges (template offset was uneven) */
    width: 100%;
    height: 100%;
    margin: 0;
}

/* About blue tile: inverse favicon (white disc, dark glyph) */
.about-gallery-tile .icon-box-light {
    --icon-box-size: 4.5rem;
    --icon-glyph-size: 1.65rem;
    margin: 0 0 0.5rem 0 !important;
    background: #fff !important;
}

.about-gallery-tile strong,
.about-gallery-tile small {
    line-height: 1.25;
}

/* Fact circles: true circles (btn-square sets border-radius:50px and wins over rounded-circle) */
.about-fact {
    width: 200px;
    height: 200px;
    max-width: 100%;
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.25rem !important;
    border-radius: 50% !important;
    box-sizing: border-box;
}

.about-fact p,
.about-fact strong {
    line-height: 1.3;
    max-width: 11ch;
}

.about-fact strong {
    font-size: 1.15rem;
    font-weight: 600;
}

/* Triangle cluster of three circles */
.about-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem 1rem;
    justify-items: center;
    align-items: center;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.about-facts .about-fact:nth-child(1) {
    justify-self: end;
}

.about-facts .about-fact:nth-child(2) {
    justify-self: start;
}

.about-facts .about-fact:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: -2.5rem;
}

@media (max-width: 575.98px) {
    .about-fact {
        width: 160px;
        height: 160px;
        padding: 1rem !important;
    }

    .about-facts {
        gap: 1rem;
        max-width: 340px;
    }

    .about-facts .about-fact:nth-child(3) {
        margin-top: -1.25rem;
    }

    .about-gallery-tile .icon-box-light {
        --icon-box-size: 3.75rem;
        --icon-glyph-size: 1.35rem;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .about-fact {
        width: 170px;
        height: 170px;
    }
}

/* legacy class still used in markup in places — keep no-op safe */
.about-fact.mt-n130 {
    margin-top: 0;
}

.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 36px;
    height: 46px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--bs-primary);
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 90px;
    height: 90px;
    background: var(--bs-primary);
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 90px;
    height: 90px;
    background: var(--bs-primary);
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: 3px;
    border-left: 30px solid #FFFFFF;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

.modal-video .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.modal-video .modal-body {
    position: relative;
    padding: 0px;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}


/*** Service ***/
.container-service {
    position: relative;
}

.container-service::before {
    position: absolute;
    content: '';
    background: var(--bs-light);
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    clip-path: polygon(0 0, 100% 0, 100% 30%, 0 70%);
    z-index: -1;
}

.service-item {
    position: relative;
    height: 100%;
    padding: 45px 30px;
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
}

.service-item::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    left: 0;
    bottom: 0;
    transition: .5s;
    background: var(--bs-primary);
}

.service-item:hover::before {
    height: 100%;
    top: 0;
}

/* Raise content above the hover fill — but do NOT restyle icon-box internals */
.service-item > *:not(.icon-box-primary):not(.icon-box-light) {
    position: relative;
    transition: .5s;
    z-index: 1;
}

.service-item .icon-box-primary,
.service-item .icon-box-light {
    position: relative;
    z-index: 2;
    transition: background-color .3s ease, box-shadow .3s ease;
}

.service-item:hover h5,
.service-item:hover p {
    color: var(--bs-white);
}

.service-item:hover .btn-light {
    position: relative;
    z-index: 1;
}

.service-list .btn {
    color: var(--bs-dark);
}

.service-list .btn:hover {
    color: var(--bs-white);
    border-color: var(--bs-primary) !important;
}

.working-process .process-box {
    height: 100%;
    position: relative;
    background: var(--bs-white);
    transition: .5s;
}

.working-process .process-box:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transform: translateY(-5px);
}

.working-process .process-number {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    top: -23px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bs-white);
    color: var(--bs-primary);
    font-size: 16px;
    font-weight: 600;
    border-radius: 40px;
}

.working-process .process-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background: var(--bs-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--bs-primary);
    transition: 0.5s;
}

.working-process .process-box:hover .process-icon {
    background: var(--bs-primary);
    color: var(--bs-white);
}


/*** Research ***/
.research-item {
    position: relative;
    height: 100%;
    overflow: hidden;
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
}

.research-item .research-text {
    padding: 30px;
}

.research-item .research-overlay {
    position: absolute;
    width: 100%;
    height: 0;
    left: 0;
    bottom: 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    background: var(--bs-primary);
    transition: .5s;
    opacity: 0;
}

.research-item:hover .research-overlay {
    opacity: 1;
    height: 100%;
    top: 0;
}

.research-item .research-overlay h5,
.research-item .research-overlay p {
    color: var(--bs-white);
    
}


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

.container-team::before {
    position: absolute;
    content: '';
    background: var(--bs-light);
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    clip-path: polygon(0 70%, 100% 30%, 100% 100%, 0% 100%);
    z-index: -1;
}

.team-item {
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
}

.team-item .team-social {
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    right: 0;
    transition: .5s;
    background: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-item:hover .team-social {
    width: 100%;
    left: 0;
}

.team-item .team-social .btn {
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social .btn {
    opacity: 1;
}


/*** Testimonial ***/
.testimonial {
    background: linear-gradient(rgba(3, 27, 78, .3), rgba(3, 27, 78, .3)), url(../img/testimonial.jpg) left center no-repeat;
    background-size: cover;
}

.testimonial-item img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 60px;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-left: 15px;
    color: var(--bs-primary);
    font-size: 30px;
    line-height: 0;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--bs-dark);
}


/*** Contact ***/
@media (min-width: 992px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 0px;
        height: 100%;
        top: 0;
        left: 50%;
        border-left: 1px dashed rgba(255, 255, 255, .2);
    }
}

@media (max-width: 991.98px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 100%;
        height: 0px;
        top: 50%;
        left: 0;
        border-top: 1px dashed rgba(255, 255, 255, .2);
    }
}

.contact-form .help-block ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}


/*** Footer ***/
.footer {
    position: relative;
    overflow: hidden;
    background-color: var(--bs-dark);
    background-image:
            linear-gradient(rgba(3, 27, 78, 0.92), rgba(3, 27, 78, 0.94));
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
    color: rgba(255, 255, 255, 0.85);
}

/* Kill template centre divider (misaligned with 3 columns / mobile stack) */
.footer::after {
    display: none !important;
    content: none !important;
}

/* Certificate gallery */
.cert-card {
    display: block;
    text-decoration: none;
    color: var(--bs-body-color);
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    padding: 10px;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(3,27,78,.12);
    border-color: var(--bs-primary);
}
.cert-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: linear-gradient(145deg, #f7f9fb, #eef2f6);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cert-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 8px;
}
.cert-card:hover .cert-thumb img {
    transform: scale(1.03);
}
.cert-card small {
    display: block;
    text-align: center;
    font-weight: 600;
    color: var(--bs-body-color);
    padding: 8px 4px 2px;
    font-size: .82rem;
    line-height: 1.3;
}
.cert-card:hover small {
    color: var(--bs-primary);
}
.cert-group-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bs-dark);
    margin: 2rem 0 1.1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--bs-primary);
}

/* Lightbox */
.cert-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(20, 20, 24, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: zoom-out;
}
.cert-lightbox.open {
    display: flex;
}
.cert-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.cert-lightbox .lb-close {
    position: absolute;
    top: 18px;
    right: 24px;
    background: rgba(255,255,255,.15);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

/* Packages */
.packages-table thead th {
    background: var(--bs-primary);
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    border-bottom: 0;
    position: sticky;
    top: 0;
    white-space: nowrap;
}
.packages-table td {
    font-size: .88rem;
    vertical-align: top;
    padding: .65rem .75rem;
}
.packages-table .pkg-name {
    font-weight: 700;
    color: var(--bs-dark);
    min-width: 220px;
}
.packages-table tbody tr:nth-child(even) {
    background: #f8fafc;
}
.packages-table tbody tr:hover {
    background: #eef3fb;
}
.level-badge {
    background: #eef3fb;
    color: var(--bs-primary);
    font-weight: 600;
    font-size: .75rem;
    padding: .3em .7em;
    border-radius: 999px;
}

/* Blog */
.blog-card {
    border-radius: 12px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(3,27,78,.1);
    border-color: var(--bs-primary);
}
.blog-card h3 a {
    color: var(--bs-dark);
}
.blog-card h3 a:hover {
    color: var(--bs-primary);
}
.blog-tag {
    display: inline-block;
    background: #eef3fb;
    color: var(--bs-primary);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .3em .7em;
    border-radius: 999px;
    margin-bottom: .8rem;
}
.blog-excerpt {
    font-size: .92rem;
}
.blog-article h1 {
    font-weight: 700;
}
.blog-article h2 {
    font-weight: 700;
    color: var(--bs-dark);
}
.blog-article p,
.blog-article li {
    font-size: 1.02rem;
    line-height: 1.75;
    color: #444;
}
.blog-article ul {
    padding-left: 1.2rem;
}

/* Mobile sticky Call/WhatsApp bar */
.mobile-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-top: 1px solid var(--bs-border-color);
    box-shadow: 0 -4px 16px rgba(3, 27, 78, .12);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-sticky-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    color: #fff;
    background: var(--bs-primary);
}
.mobile-sticky-bar a + a {
    background: var(--bs-primary);
    color: #fff;
    border-left: 1px solid rgba(255, 255, 255, .25);
}
.mobile-sticky-bar .msb-wa {
    background: var(--bs-primary);
    color: #fff;
}
@media (max-width: 991.98px) {
    .mobile-sticky-bar { display: grid; }
    .back-to-top { bottom: 70px; }
    .home-hero-ctas { display: none; }
    .footer, .copyright { padding-bottom: calc(env(safe-area-inset-bottom, 0) + 3.5rem); }
}

/* Equipment */
.equip-card {
    border-radius: 12px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.equip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(3,27,78,.1);
}
.equip-card img {
    object-fit: cover;
    width: 100%;
    aspect-ratio: 4 / 3;
}

/* Packages promo (homepage) */
.pkg-promo-card {
    border-radius: 12px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pkg-promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(3,27,78,.1);
    border-color: var(--bs-primary);
}

/* Testimonials */
.testimonial-card {
    border-radius: 12px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(3,27,78,.1);
}
.testimonial-stars {
    color: #f5a623;
    font-size: 1.1rem;
    letter-spacing: .1em;
}

.footer-inner {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
}

@media (min-width: 992px) {
    .footer-inner {
        padding-top: 3.5rem;
        padding-bottom: 3rem;
    }
}

/* Brand wordmark: wrap cleanly on narrow screens */
.footer-brand {
    display: inline-block;
    max-width: 100%;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-brand .footer-brand-title {
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    line-height: 1.25;
    color: var(--bs-primary);
    margin: 0;
    word-break: break-word;
}

.footer-brand .footer-brand-title span {
    color: #fff;
}

.footer-blurb {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    max-width: 28rem;
}

/* Address / phone / email lines */
.footer-meta {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-meta li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
    font-size: 0.95rem;
    line-height: 1.45;
}

.footer-meta li:last-child {
    margin-bottom: 0;
}

.footer-meta i {
    margin-top: 0.2rem;
    color: var(--bs-primary);
    width: 1.1rem;
    text-align: center;
    flex-shrink: 0;
}

.footer-meta a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    word-break: break-word;
}

.footer-meta a:hover {
    color: #fff;
}

.footer-heading {
    color: #fff !important;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Explore links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
}

.footer .btn.btn-link {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0.2rem 0;
    text-align: left;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    text-transform: none;
    text-decoration: none;
    box-shadow: none !important;
    white-space: normal;
    transition: color .2s ease, transform .2s ease;
}

.footer .btn.btn-link::before {
    position: static;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--bs-primary);
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.footer .btn.btn-link:hover {
    color: #fff;
    letter-spacing: 0;
    transform: translateX(2px);
}

.footer-contact-note {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1rem;
}

/* Social / CTA circles — true circles matching site mark language */
.footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.footer-actions .btn-square {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0;
}

.footer-actions .btn-square i {
    line-height: 1;
    font-size: 1.05rem;
}

/* Mobile: two-up Explore + Contact under brand */
@media (max-width: 991.98px) {
    .footer-col-brand {
        margin-bottom: 0.5rem;
        padding-bottom: 1.25rem;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
    }

    .footer-col-nav,
    .footer-col-cta {
        margin-top: 0.25rem;
    }
}

@media (max-width: 575.98px) {
    .footer-col-nav,
    .footer-col-cta {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .footer-actions {
        justify-content: flex-start;
    }
}

/* Copyright bar */
.copyright {
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    background-color: var(--bs-dark);
}

.copyright .container {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.copyright p {
    font-size: 0.875rem;
    line-height: 1.5;
}

.copyright a {
    color: var(--bs-white);
}

.copyright a:hover {
    color: var(--bs-primary);
}

@media (max-width: 767.98px) {
    .copyright .row > [class*="col-"] {
        text-align: center !important;
    }

    .copyright .row > [class*="col-"] + [class*="col-"] {
        margin-top: 0.35rem;
    }
}

/* Reduced motion: disable animated/reveal effects for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .wow {
        visibility: visible !important;
    }
}
