/********** Template CSS **********/
:root {
    --primary: #06A3DA;
    --secondary: #34AD54;
    --light: #EEF9FF;
    --dark: #091E3E;
}


/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
    0% {
        -webkit-transform: perspective(120px)
    }
    50% {
        -webkit-transform: perspective(120px) rotateY(180deg)
    }
    100% {
        -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
    }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    }
    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    }
    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

#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;
}


/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 800 !important;
}

h3,
h4,
.fw-semi-bold {
   /* font-weight: 700 !important; */
}

h5,
h6,
.fw-medium {
    font-weight: 600 !important;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
    box-shadow: inset 0 0 0 50px transparent;
}

.btn-primary:hover {
    box-shadow: inset 0 0 0 0 var(--primary);
}

.btn-secondary:hover {
    box-shadow: inset 0 0 0 0 var(--secondary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}


/*** Navbar ***/
.navbar-dark .navbar-nav .nav-link {
    font-family: 'Nunito', sans-serif;
    position: relative;
    margin-left: 25px;
    padding: 35px 0;
    color: #FFFFFF;
    font-size: 14px;
    /*font-weight: 600; */
    outline: none;
    transition: .5s;
}


.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--dark);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

.sticky-top.navbar-dark .navbar-nav .nav-link:hover,
.sticky-top.navbar-dark .navbar-nav .nav-link.active {
    color: #0077a8;
}

.navbar-dark .navbar-brand h1 {
    color: #FFFFFF;
}

.navbar-dark .navbar-toggler {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-dark {
        position: relative;
        background: #FFFFFF;
    }

    .navbar-dark .navbar-nav .nav-link,
    .navbar-dark .navbar-nav .nav-link.show,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        color: var(--dark);
    }

    .navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }

    .topbar {
        display: none !important;
    }

    nav.navbar {
        position: relative;
    }

    .navbar-toggler {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
}

@media (min-width: 992px) {
    .navbar-dark {
        position: absolute;
        width: 100%;
        /*top: 0;*/
        left: 0;
        background-color: rgba(9, 30, 62, 0.82);
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
    }
    
    .sticky-top.navbar-dark {
        position: fixed;
        background: #FFFFFF;
    }

    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-dark .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .sticky-top.navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
}


/*** Carousel ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 62, .1);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}


/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #FFFFFF;
    -webkit-animation: section-title-run 5s infinite linear;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

@-webkit-keyframes section-title-run {
    0% {left: 0; } 50% { left : 145px; } 100% { left: 0; }
}

@-webkit-keyframes section-title-run-center {
    0% { left: 50%; margin-left: -75px; } 50% { left : 50%; margin-left: 45px; } 100% { left: 50%; margin-left: -75px; }
}

@-webkit-keyframes section-title-run-sm {
    0% {left: 0; } 50% { left : 85px; } 100% { left: 0; }
}


/*** Service ***/
.service-item {
    position: relative;
    height: 300px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    margin-bottom: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 2px;
    transform: rotate(-45deg);
}

.service-item .service-icon i {
    transform: rotate(45deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: #DDDDDD;
    border-radius: 2px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--primary);
}

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #FFFFFF !important;
    box-shadow: 0 0 30px #DDDDDD;
}


/*** Team ***/
.team-item {
    transition: .5s;
}

.team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-social a.btn {
    position: relative;
    margin: 0 3px;
    margin-top: 100px;
    opacity: 0;
}

.team-item:hover {
    box-shadow: 0 0 30px #DDDDDD;
}

.team-item:hover .team-social {
    background: rgba(9, 30, 62, .7);
}

.team-item:hover .team-social a.btn:first-child {
    opacity: 1;
    margin-top: 0;
    transition: .3s 0s;
}

.team-item:hover .team-social a.btn:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .05s;
}

.team-item:hover .team-social a.btn:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .1s;
}

.team-item:hover .team-social a.btn:nth-child(4) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .15s;
}

.team-item .team-img img,
.blog-item .blog-img img  {
    transition: .5s;
}

.team-item:hover .team-img img,
.blog-item:hover .blog-img img {
    transform: scale(1.15);
}


/*** Miscellaneous ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.bg-header {
    background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .1)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.link-animated a {
    transition: .5s;
}

.link-animated a:hover {
    padding-left: 10px;
}

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: -75px;
    }
}
.section-title-sm::after {
    position: absolute;
    content: "";
    width: 50px;
    height: 3px;
    left: 0;
    bottom: 0;
    background: var(--primary);
}

.footer-tags .badge {
    font-size: 0.85rem;
    padding: 0.5em 0.75em;
    text-decoration: none;
}

.footer-tags .badge:hover {
    opacity: 0.9;
}

/* Facts section contrast fix: darken primary background */
.facts .bg-primary {
    background-color: #006a92 !important;
}

/* WCAG AA: #06A3DA text on white = 2.89:1 (fails). Use #006a92 = 5.37:1 */
.text-primary {
    color: #006a92 !important;
}

/* WCAG AA: white on #06A3DA bg = 2.89:1 (fails). Use #006a92 bg = 5.37:1 */
.btn-primary {
    background-color: #006a92 !important;
    border-color: #006a92 !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: #005577 !important;
    border-color: #005577 !important;
}
.btn-outline-primary {
    color: #006a92 !important;
    border-color: #006a92 !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #006a92 !important;
    border-color: #006a92 !important;
}

/* Logo toggle: white logo on dark navbar, color logo on sticky-top */
.navbar-logo-color { display: none; }
.navbar-logo-white { display: inline-block; }

.sticky-top .navbar-logo-color { display: inline-block; }
.sticky-top .navbar-logo-white { display: none; }

@media (max-width: 991.98px) {
    .navbar-logo-white { display: none; }
    .navbar-logo-color { display: inline-block; }
}

/* === Accessibility Widget CSS === */
#accessibility-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    font-family: 'Nunito', sans-serif;
}
#accessibility-widget .a11y-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #2563eb;
    border: none;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
#accessibility-widget .a11y-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
#accessibility-widget .a11y-btn:hover { transform: scale(1.08); }
#accessibility-widget .a11y-btn:focus { outline: 3px solid #fbbf24; outline-offset: 3px; }
#accessibility-widget .a11y-panel {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 320px;
    max-height: 500px;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
    padding: 24px;
    display: none;
    flex-direction: column;
    gap: 18px;
}
#accessibility-widget .a11y-panel.open { display: flex; }
#accessibility-widget .a11y-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
#accessibility-widget .a11y-group { display: flex; flex-direction: column; gap: 10px; }
#accessibility-widget .a11y-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
#accessibility-widget .a11y-row { display: flex; gap: 8px; flex-wrap: wrap; }
#accessibility-widget .a11y-btn-sm {
    flex: 1;
    min-width: 80px;
    padding: 10px 8px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
#accessibility-widget .a11y-btn-sm:hover { background: #e2e8f0; }
#accessibility-widget .a11y-btn-sm.active { background: #2563eb; color: #fff; border-color: #2563eb; }
#accessibility-widget .a11y-reset {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #dc2626;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
#accessibility-widget .a11y-reset:hover { background: #b91c1c; }
#accessibility-widget .a11y-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 4px 0;
}
#accessibility-widget .a11y-badge {
    background: #2563eb;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
}

/* === Accessibility applied classes === */
body.a11y-font-1, body.a11y-font-1 * { font-size: 110% !important; }
body.a11y-font-2, body.a11y-font-2 * { font-size: 125% !important; }
body.a11y-font-3, body.a11y-font-3 * { font-size: 150% !important; }
body.a11y-font-4, body.a11y-font-4 * { font-size: 175% !important; }

body.a11y-contrast *,
body.a11y-contrast *::before,
body.a11y-contrast *::after {
    background: #000 !important;
    color: #ff0 !important;
    border-color: #ff0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
body.a11y-contrast a,
body.a11y-contrast a * {
    color: #0ff !important;
    text-decoration: underline !important;
}
body.a11y-contrast img,
body.a11y-contrast video,
body.a11y-contrast iframe,
body.a11y-contrast svg {
    filter: grayscale(100%) contrast(120%);
}

body.a11y-grayscale img,
body.a11y-grayscale video,
body.a11y-grayscale iframe,
body.a11y-grayscale svg {
    filter: grayscale(100%) !important;
}
body.a11y-grayscale {
    filter: grayscale(100%);
}

body.a11y-negative {
    filter: invert(1) hue-rotate(180deg);
}
body.a11y-negative img,
body.a11y-negative video,
body.a11y-negative iframe,
body.a11y-negative svg {
    filter: invert(1) hue-rotate(180deg);
}

body.a11y-lightbg *,
body.a11y-lightbg *::before,
body.a11y-lightbg *::after {
    background: #fff !important;
    color: #000 !important;
    border-color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
body.a11y-lightbg a,
body.a11y-lightbg a * {
    color: #0000ee !important;
    text-decoration: underline !important;
}
body.a11y-lightbg img,
body.a11y-lightbg video,
body.a11y-lightbg iframe,
body.a11y-lightbg svg {
    filter: brightness(1.2) contrast(1.1);
}

body.a11y-links-underline a { text-decoration: underline !important; }

body.a11y-readable, body.a11y-readable * {
    font-family: Arial, Helvetica, sans-serif !important;
}
