
/*** Spinner Start ***/
/*** Spinner ***/
/* * {
    outline: 1px solid red !important;
} */
 /* This overwrites Bootstrap's default font */
/* This forces every single element on the page to use the font */
/* body, h1, h2, h3, h4, h5, h6, 
button, input, textarea, select {
    font-family: 'Idealist Sans', sans-serif !important;
} */
/* body, h1, h2, h3, h4, h5, h6, 
button, input, textarea, select {
    font-family: 'JHC Topic', serif !important;
} */
/* 1. Set the DEFAULT font (Idealist Sans) */
body, h1, h2, h3, h4, h5, h6,
button, input, textarea, select,
ul, ol, li {
    font-family: 'Idealist Sans', sans-serif !important;
    transition: font-family 0.1s ease; /* Smooth switch */
}


/* Theme variables: default readable text color */
:root {
    /* --text-color: #333333; */
    --text-color: #E02454;
    --text-form: #333333;
}

/* Default readable body text color — paragraphs inherit this */
body {
    color: var(--text-color);
}
p,
.lead {
    /* font-size: 1rem;
    line-height: 1.75; */
    /* max-width: 65ch; */
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.6;
}

/* 2. Set the ALTERNATE font class (JHC Topic) */
body.use-topic, 
body.use-topic h1, body.use-topic h2, body.use-topic h3, 
body.use-topic button, body.use-topic input {
    font-family: 'JHC Topic', serif !important;
}

/* 3. Style the toggle button so it floats on top */
#font-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    padding: 15px 25px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
#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;
}
/*** Spinner End ***/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 99;
}

/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50%;
}

.btn.btn-primary {
    background: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    transition: 0.5s;
}

.btn.btn.btn-primary:hover {
    background: var(--bs-primary) !important;
    color: var(--bs-secondary);
    border: 1px solid var(--bs-secondary);
}

.btn.btn-secondary {
    background: transparent;
    color: var(--bs-secondary);
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    border: none;
    transition: 0.5s;
}

.btn.btn-secondary:hover {
    color: var(--bs-primary) !important;
}


/*** Section Title Start ***/

/*** Section Title Start ***/
/*** Section Title Parent ***/
.section-title {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Base Styles for the Text Badge */
.sub-style, .sub-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
    white-space: normal !important; /* Prevents layout break on small screens */
    vertical-align: middle;
}

/* --- LEFT SIDE LINES (.sub-style) --- */
.section-title .sub-style {
    /* FORCE room for the lines on the left */
    padding-left: 110px !important; 
    text-align: left; /* Ensures text starts AFTER the padding */
}

.section-title .sub-style::before {
    content: "";
    width: 100px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    border-top: 1px solid var(--bs-secondary) !important;
}

.section-title .sub-style::after {
    content: "";
    width: 50px;
    position: absolute;
    left: 0; 
    top: 50%;
    transform: translateY(-50%);
    margin-top: 8px; /* Push the shorter line down slightly for 'double' effect */
    border-top: 1px solid var(--bs-primary) !important;
}

/* --- RIGHT SIDE LINES (.sub-title) --- */
.sub-title {
    /* FORCE room for the lines on the right */
    padding-right: 110px !important;
    text-align: right; /* Ensures text ends BEFORE the padding */
}

.sub-title::before {
    content: "";
    width: 100px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border-top: 1px solid var(--bs-secondary) !important;
}

.sub-title::after {
    content: "";
    width: 50px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 8px; /* Push the shorter line down slightly */
    border-top: 1px solid var(--bs-primary) !important;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    /* 1. Shrink the padding (safe space) */
    .section-title .sub-style {
        padding-left: 60px !important;
    }
    .sub-title {
        padding-right: 60px !important;
    }

    /* 2. Shrink the lines to fit the new space */
    .section-title .sub-style::before,
    .sub-title::before {
        width: 50px; 
    }
    .section-title .sub-style::after,
    .sub-title::after {
        width: 25px;
    }
}
/*  */
/* .section-title {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.section-title .sub-style {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
    margin: 0 110px;
}

.section-title .sub-style::before {
    content: "";
    width: 100px;
    position: absolute;
    bottom: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-bottom: -6px;
    margin-left: -100px;
    border: 1px solid var(--bs-secondary) !important;
}

.section-title .sub-style::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-top: -8px;
    margin-left: -50px;
    border: 1px solid var(--bs-primary) !important;
}

.sub-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.sub-title::before {
    content: "";
    width: 100px;
    position: absolute;
    bottom: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-bottom: -8px;
    margin-right: -100px;
    border: 1px solid var(--bs-secondary) !important;
}

.sub-title::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-top: -6px;
    margin-right: -50px;
    border: 1px solid var(--bs-primary) !important;
} */


/*** Topbar Start ***/
.fixed-top .container {
    transition: 0.5s;
}

.topbar {
    padding: 2px 10px 2px 20px;
    background: var(--bs-primary) !important;
}

.topbar a,
.topbar a i {
    transition: 0.5s;
}

.topbar a:hover,
.topbar a i:hover {
    color: var(--bs-secondary) !important;
}


@media (max-width: 768px) {
    .topbar {
        display: none;    
    }
}
/*** Topbar End ***/


/*** Navbar ***/
.navbar-light .navbar-nav .nav-link {
    font-family: 'Poppins', sans-serif;
    position: relative;
    margin-right: 25px;
    padding: 35px 0;
    color: var(--bs-primary) !important;
    font-size: 17px;
    font-weight: 400;
    outline: none;
    transition: .5s;
}

.sticky-top .navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--bs-primary) !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--bs-secondary) !important;
}

.navbar-light .navbar-brand img {
    max-height: 60px;
    transition: .5s;
}

.sticky-top .navbar-light .navbar-brand img {
    max-height: 45px;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
}

@media (min-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        border-radius: 10px;
        transition: .5s;
        opacity: 0;
    }
}

.dropdown .dropdown-menu a:hover {
    background: var(--bs-primary);
    color: var(--bs-secondary);
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light) !important;
    transition: .5s;
    opacity: 1;
}

@media (max-width: 991.98px) {
    .sticky-top {
        position: relative;
        background: var(--bs-white);
    }

    .navbar.navbar-expand-lg .navbar-toggler {
        padding: 10px 20px;
        border: 1px solid var(--bs-primary) !important;
        color: var(--bs-primary);
    }

    .navbar-light .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid #DDDDDD;
    }

    .navbar-light .navbar-nav .nav-link,
    .sticky-top .navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
        color: var(--bs-dark) !important;
    }

    .navbar-light .navbar-brand img {
        max-height: 45px;
    }
}

@media (min-width: 991.98px) {
    .sticky-top .navbar-light {
        background: var(--bs-light) !important;
    }

    /*** Top and Bottom borders go out ***/
    .navbar-light .navbar-nav .nav-link:after,
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        top: 30px;
        bottom: 30px;
        left: 0px;
        width: 100%;
        height: 2px;
        background: var(--bs-primary);
        opacity: 0;
        transition: all 0.5s;
    }

    .navbar-light .navbar-nav .nav-link:before {
        bottom: auto;
    }

    .navbar-light .navbar-nav .nav-link:after {
        top: auto;
    }

    .navbar-light .navbar-nav .nav-link:hover:before,
    .navbar-light .navbar-nav .nav-link.active:before {
        top: 20px;
        opacity: 1;
    }

    .navbar-light .navbar-nav .nav-link:hover::after,
    .navbar-light .navbar-nav .nav-link.active::after {
        bottom: 20px;
        opacity: 1;
    }
}

#searchModal .modal-content {
    background: rgba(240, 245, 251, 0.5);
}
/*** Navbar End ***/


/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
    /* background: linear-gradient(rgba(0, 58, 102, 0.9), rgba(0, 58, 102, 0.8)), url(../img/breadcrumb.png); */
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: initial;
    background-size: cover;
    padding: 100px 0 60px 0;
}
/*** Single Page Hero Header End ***/


/*** Carousel Hero Header Start ***/
.carousel-header .carousel-control-prev .carousel-control-prev-icon,
.carousel-header .carousel-control-next .carousel-control-next-icon {
    width: 4rem;
    height: 4rem;
    margin-left: -60px;
    border-radius: 50%;
    background-size: 60% 60%;
    transition: 0.5s;
}

.carousel-header .carousel-control-next .carousel-control-next-icon {
    margin-left: 0;
    margin-right: -60px;
}

.carousel-header .carousel .carousel-indicators {
    padding-bottom: 0;
    transition: 0.5s;
}


.carousel-header .carousel .carousel-indicators li,
.carousel-header .carousel .carousel-indicators li,
.carousel-header .carousel .carousel-indicators li {
    width: 8px;
    height: 8px;
    border: 8px solid var(--bs-primary);
    border-radius: 50%;
    margin-right: 30px;
    transition: 0.5s;
}

.carousel-header .carousel .carousel-indicators li.active {
    width: 8px;
    height: 8px;
    border: 8px solid var(--bs-secondary);
}

.carousel-header .carousel-inner .carousel-item {
    position: relative;
    min-height: 100vh 
}

.carousel-header .carousel-inner .carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-header .carousel-inner .carousel-item .carousel-caption  {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, 0.6));
    background-size: cover;
}


@media (max-width: 768px) {
    .carousel-header {
        height: 700px !important;
    }

    .carousel-header .carousel-control-prev .carousel-control-prev-icon,
    .carousel-header .carousel-control-next .carousel-control-next-icon {
        margin-top: 500px;
    }

    .carousel-header .carousel-control-prev .carousel-control-prev-icon {
        margin-left: 0px;
    }

    .carousel-header .carousel-control-next .carousel-control-next-icon {
        margin-right: 0px;
    }

    .carousel-header .carousel .carousel-indicators {
        padding: 0;
    }
}
/*** Carousel Hero Header End ***/


/*** Counter Facts Start ***/
.counter-facts {
    background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, 0.8)), url(../img/breadcrumb.png);
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
}

.counter-facts .counter {
    position: relative;
    text-align: center;
    width: 200px;
    min-height: 215px;
    padding: 10px 15px;
    margin: 0 auto;
    border-radius: 100px;
    box-shadow: 0 8px 5px rgba(0, 0, 0, 0.2);
    background: var(--bs-white);
}

.counter-facts .counter:before {
    content: "";
    position: absolute;
    height: 105px;
    width: 100%;
    left: 0;
    top: 0;
    border-radius: 10px 10px 0 0;
    background-color: var(--bs-primary);
    
}
.counter-facts .counter .counter-icon {
    position: relative;
    width: 120px;
    height: 100px;
    margin: 0 auto 10px;
    border-radius: 10px 10px 0 0;
    transform: translateY(-20px);
    font-size: 50px;
    line-height: 90px;
    color: var(--bs-secondary);
    background: rgba(1, 143, 252, 0.5);
    clip-path: polygon(0% 0%, 100% 0, 100% 70%, 50% 100%, 0 70%);
}
.counter-facts .counter .counter-icon:before {
    content: "";
    position: absolute;
    width: 120px;
    height: 90px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px 10px 0 0;
    background: rgba(0, 58, 102, 0.5);
    z-index: -1;
    clip-path: polygon(0% 0%, 100% 0, 100% 70%, 50% 100%, 0 70%);
}
.counter-facts .counter:hover .counter-icon i {
    transform: rotate(360deg);
    transition: all 0.3s ease;
}
.counter-facts .counter h3 {
    color: var(--bs-primary);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 5px 0;
}
.counter-facts .counter .counter-value {
    font-size: 30px;
    font-weight: 700;
    display: block;
    color: var(--bs-secondary);
}

@media screen and (max-width: 1200px) {
    .counter-facts .counter { margin-bottom: 40px; 
    }
}
/*** Counter Facts End ***/


/*** service Start ***/
.service .service-item {
    position: relative;
    overflow: hidden;
}

.service .service-item .service-inner .service-title {
    position: relative;
    margin-top: -30px;
    text-align: center;
    transition: 0.5s;
}

.service .service-item .service-inner .service-title .service-content {
    position: absolute;
    bottom: -100%; 
    left: 0;
    margin-left: 30px;
    margin-right: 30px;
    text-align: center;
    border-radius: 10px;
    background: var(--bs-primary);
    opacity: 0;
    transition: 0.5s;
}

.service .service-item:hover .service-inner .service-title .service-content {
    bottom: 0;
    opacity: 1;
}

.service .service-item .service-inner .service-title .service-content a h4 {
    border-bottom: 1px solid rgba(256, 256, 256, .1);
}

.service .service-item .service-inner .service-title .service-title-name {
    transition: 0.5s;
}

.service .service-item:hover .service-inner .service-title .service-title-name {
    opacity: 0;
}

.service .service-item .service-inner .service-img {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.service .service-item .service-inner .service-img::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .5);
    transition: 0.5s;
    opacity: 0;
}

.service .service-item:hover .service-inner .service-img::after {
    height: 100%;
    opacity: 1;
}

.service .service-item .service-inner .service-img img {
    transition: 0.5s;
}

.service .service-item:hover .service-inner .service-img img {
    transform: scale(1.3);
}
/*** Service End ***/


/*** Features Start ***/
.features .feature-item {
    position: relative;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.features .feature-item::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    bottom: 0;
    left: 0;
    border-radius: 10px;
    background: rgba(0, 58, 102, 0.1);
    z-index: -1;
    transition: 0.5s;
}

.features .feature-item:hover::after {
    height: 100%;
}

.features .feature-item .feature-icon {
    width: 120px; 
    height: 120px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bs-light);
    transition: 0.5s;
}

.features .feature-item:hover .feature-icon {
    border-radius: 50%;
    background: var(--bs-white) !important;
}

.features .feature-item .feature-icon i {
    transition: 0.5s;
}

.features .feature-item:hover .feature-icon i {
    color: var(--bs-secondary) !important;
    transform: rotate(360deg);
    transition: all 0.5s ease;
}
/*** Features End ***/


/*** Country Start ***/
/* 1. Main Card Container */
.country .country-item {
    position: relative;
    overflow: hidden; /* Ensures the image zoom doesn't spill out */
    border-radius: 10px; /* Rounds the corners of the whole card */
}

/* 2. Permanent Gradient Overlay (Readability Layer) */
/* This creates a shadow at the bottom so white text is readable */
.country .country-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%; /* Cover full height */
    top: 0;
    left: 0;
    /* Gradient: Transparent at top -> Dark Blue at bottom */
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0, 58, 102, 0.9) 100%);
    z-index: 1;
}

/* 3. The Image (Keep the zoom effect) */
.country .country-item img {
    transition: 0.5s;
    width: 100%; /* Ensure it fits */
}

/* Hover: Zoom the image slightly */
.country .country-item:hover img {
    transform: scale(1.1);
}

/* 4. Flag Styling */
.country .country-item .country-flag {
    position: absolute;
    width: 90px;
    height: 90px;
    top: 20px; /* Adjusted: moved to top-right or left so it doesn't block text */
    right: 20px; /* Placed in corner */
    z-index: 2;
}

.country .country-item .country-flag img {
    border: 4px solid rgba(255,255,255, 0.8);
    border-radius: 50%; /* Ensures flag is circle */
    transition: 0.5s;
}

/* Hover: Spin the flag */
.country .country-item:hover .country-flag img {
    transform: rotate(360deg);
}

/* 5. Text Styling (Always Visible) */
.country .country-item .country-name {
    position: absolute;
    width: 100%;
    bottom: 0; /* Anchored to bottom */
    left: 0;
    padding: 20px; /* Space around text */
    z-index: 3;
    text-align: center; /* or 'left' if you prefer */
    /* 1. FIXED HEIGHT: This forces every text box to be the same size */
    /* Adjust this number if your text gets cut off! */
    height: 180px; 
    
    /* 2. ALIGNMENT: Puts the Title at the top of this box */
    display: flex;
    flex-direction: column; 
    justify-content: flex-start; 
    padding-top: 30px; /* Adjust this to move the Title down/up */
}

    
    
/* Enhancing the links/text */
.country .country-item .country-name a.fs-4 {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5); /* Adds contrast */
}

.country .country-item .country-name p {
    color: rgba(255,255,255, 0.9); /* Slightly softer white for description */
    margin-top: 5px;
}
/*** Country End ***/


/*** testimonial Start ***/
.testimonial .owl-carousel.testimonial-carousel {
    position: relative;
}

.testimonial .owl-carousel.testimonial-carousel .testimonial-item .testimonial-content {
    position: relative;
    border-radius: 10px;
    background: var(--bs-light);
}

.testimonial .owl-carousel.testimonial-carousel .testimonial-item .testimonial-content::after {
    position: absolute;
    content: "";
    width: 45px;
    height: 45px;
    bottom: -20px;
    left: 30px;
    transform: rotate(45deg);
    background: var(--bs-light);
    z-index: -1;
}

.testimonial .owl-carousel.testimonial-carousel .owl-nav {
    position: absolute;
    top: -60px;
    right: 0;
    display: flex;
    font-size: 40px;
    color: var(--bs-primary);
}

.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-prev {
    margin-right: 40px;
}

.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-prev,
.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-next {
    transition: 0.5s;
}

.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--bs-secondary);
}
/*** testimonial end ***/


/*** training Start ***/
.training .training-item .training-inner {
    position: relative;
}

.training .training-item .training-inner .training-title-name {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    padding: 20px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    display: flex; 
    flex-direction: column;
    justify-content: end;
    text-align: center;
    transition: 0.5s;
}

.training .training-item {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.training .training-item:hover .training-inner .training-title-name {
    background: rgba(0, 58, 102, 0.5);
}

.training .training-item:hover .training-inner .training-title-name a {
    opacity: 0;
}

.training .training-item .training-inner img {
    transition: 0.5s;
}

.training .training-item:hover .training-inner img {
    transform: scale(1.3);
}

.training .training-item .training-content {
    position: absolute;
    width: 100%;
    bottom: -100%;
    left: 0;
    transition: 0.5s;
}

.training .training-item:hover .training-content {
    bottom: 0;
}  
/*** training End ***/


/*** Contact Start ***/
.contact .office .office-item {
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.2);
    background: var(--bs-light);
    transition: 0.5s;
}

.contact .office .office-item:hover {
    box-shadow: 20px 20px 20px rgba(0, 58, 102, 0.3);
}

.contact .office .office-item .office-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.contact .office .office-item .office-img img {
    transition: 0.5s;
}

.contact .office .office-item:hover .office-img img {
    transform: scale(1.3);
}

.contact .office .office-item .office-content a.text-secondary,
.contact .office .office-item .office-content a.text-muted {
    transition: 0.5s;
}

.contact .office .office-item .office-content a.text-muted:hover {
    color: var(--bs-secondary) !important;
}

.contact .office .office-item .office-content a.text-secondary:hover {
    color: var(--bs-primary) !important;
}
/*** Contact End ***/


/*** Footer Start ***/
.footer {
    background: var(--bs-primary);
}
.footer .footer-item a {
    line-height: 30px;
    color: var(--bs-white);
    transition: 0.5s;
}

.footer .footer-item p {
    line-height: 30px;
}

.footer .footer-item a:hover {
    letter-spacing: 2px;
    color: var(--bs-secondary);
}

/*** Footer End ***/


/*** copyright Start ***/
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bs-secondary) !important;
}
/*** copyright end ***/


/* My codes */
/* Ensures the nested menu opens to the right side */
.dropend .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px; /* Aligns top borders perfectly */
}

/* Optional: Pushes the arrow to the far right of the item */
.dropend .dropdown-toggle::after {
    float: right;
    margin-top: 7px;
}
/* The main dark blue container container */
.cta-banner-blue {
    /* Deep blue gradient based on your logo */
    background: linear-gradient(135deg, #00235B 0%, #004080 100%);
    box-shadow: 0 10px 30px rgba(0, 35, 91, 0.3);
}

/* The glowing visual icon on the left */
.cta-visual-glow {
    color: #ffffff;
    /* A soft gold drop-shadow to make the icon appear to glow */
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.7));
}

/* The glowing gold button */
.btn-glow-gold {
    background-color: #D4AF37; /* Your brand gold color */
    color: #00235B; /* Dark text for readability */
    border: none;
    /* The neon glow effect around the button */
    box-shadow: 0 0 20px 5px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

/* Button hover effect */
.btn-glow-gold:hover {
    background-color: #eac54a; /* Slightly lighter gold */
    color: #00235B;
    /* Intensify the glow on hover */
    box-shadow: 0 0 35px 10px rgba(212, 175, 55, 0.6);
    transform: translateY(-3px); /* Slight lift */
}
.accordion-body {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}
/* Add this to your CSS file */
.text-readable {
    /* color: #2C3E50 !important; The Deep Blue-Gray */
    color: #E02454 !important; 
}

/* --- DESKTOP BEHAVIOR (Large Screens) --- */
@media (min-width: 992px) {
    /* Open dropdowns on hover */
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
    
    /* Ensure nested dropdowns (dropend) open to the right on hover */
    .dropend:hover .dropdown-menu {
        display: block;
        position: absolute;
        top: 0;
        left: 100%;
        margin-top: 0;
    }
}

/* --- MOBILE BEHAVIOR (Small Screens) --- */
@media (max-width: 991.98px) {
    /* 1. Fix the Nested Dropdown (Nurses) */
    .dropend .dropdown-menu {
        position: static !important; /* Stop floating */
        display: none; /* Hide by default */
        margin-left: 20px; /* Indent slightly */
        float: none;
        width: auto;
        box-shadow: none;
        background-color: transparent; /* Optional: blend with parent */
        border: none;
    }
    
    /* Show the nested menu when the 'show' class is added via JS */
    .dropend .dropdown-menu.show {
        display: block;
    }
}
/* Begin Slider Logo */
/* Begin Slider Logo */
.logo-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 50px 0;
    background: transparent;
    z-index: 1;
}

/* Optional: Fade effect on edges to blend with white background */
.logo-slider::before,
.logo-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-slider::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}
.logo-slider::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

.logo-track {
    display: flex;
    width: max-content;
    /* Speed adjusted: 80s is smoother for a large number of logos */
    animation: scroll 80s linear infinite; 
    align-items: center; /* Vertically centers logos in the track */
}

.logo-item {
    position: relative;
    flex: 0 0 auto;
    margin: 0 40px; /* Spacing between logos */
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item img {
    /* 1. SIZE FIX: Increased height for better visibility */
    height: 120px; 
    
    /* 2. SCALE FIX: Ensures wide logos don't get too massive */
    max-width: 250px; 
    width: auto;
    
    /* 3. CLARITY FIX: Keeps aspect ratio perfect */
    object-fit: contain; 
    
    /* 4. COLOR FIX: Removed grayscale filters to show original colors */
    opacity: 1; 
    
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* Optional: Slight zoom on hover for interaction */
.logo-item img:hover {
    transform: scale(1.1);
}

/* Pause animation on hover */
.logo-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        /* Moves -50% because we duplicated the list once */
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .logo-slider {
        padding: 30px 0;
    }

    .logo-item {
        margin: 0 20px;
    }

    /* Smaller size for mobile, but still clear */
    .logo-item img {
        height: 60px;
        max-width: 150px;
    }
}
/* Optional CSS for hover effect on links */
    .migration-link {
        transition: all 0.3s ease;
    }
    .migration-link:hover {
        padding-left: 10px;
        color: var(--primary) !important; /* Uses your theme's primary color */
    }

    /* 1. Base Form Container */
    .crs-calculator-card {
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 5px 25px rgba(0,0,0,0.08);
        padding: 40px;
        position: relative;
        overflow: hidden;
        min-height: 400px;
    }

    /* 2. Progress Bar Styles */
    .step-progress-bar {
        display: flex;
        justify-content: space-between;
        margin-bottom: 40px;
        position: relative;
        padding: 0 20px;
    }

    /* The gray line behind circles */
    .step-progress-bar::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 3px;
        background: #e9ecef;
        z-index: 0;
        transform: translateY(-50%);
    }

    /* The circles */
    .step-circle {
        width: 40px;
        height: 40px;
        background: #fff;
        border: 3px solid #e9ecef;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        color: #adb5bd;
        z-index: 1;
        transition: all 0.3s ease;
    }

    /* Active Step (Current) */
    .step-circle.active {
        border-color: var(--bs-primary);
        color: var(--bs-primary);
        background: #fff;
        transform: scale(1.1);
    }

    /* Completed Step (Past) */
    .step-circle.completed {
        background: var(--bs-primary);
        border-color: var(--bs-primary);
        color: #fff;
    }

    /* 3. Hiding/Showing Steps */
    /* IMPORTANT: This hides all steps by default */
    .form-step-section {
        display: none; 
    }

    /* This shows the current step */
    .form-step-section.active-step {
        display: block;
        animation: fadeSlideIn 0.5s ease forwards;
    }

    /* 4. Input Styling (Radio Cards) */
    .selection-card {
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 15px 20px;
        margin-bottom: 12px;
        cursor: pointer;
        transition: all 0.2s;
        display: block;
        font-weight: 500;
        color: #495057;
    }

    .selection-card:hover {
        background-color: #f8f9fa;
        border-color: var(--bs-primary);
    }

    /* When the radio inside is checked, style the label */
    .btn-check:checked + .selection-card {
        background-color: rgba(13, 110, 253, 0.05); /* Light blue tint */
        border-color: var(--bs-primary);
        color: var(--bs-primary);
        font-weight: 700;
        box-shadow: 0 0 0 1px var(--bs-primary);
    }

    /* Animation */
    @keyframes fadeSlideIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
/* express entry */
     .highlight-card {
        background: #fff;
        border: 1px solid #eee;
        border-left: 5px solid var(--bs-primary);
        transition: all 0.3s;
    }
    .highlight-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    }
    .icon-box-primary {
        width: 60px;
        height: 60px;
        background: rgba(var(--bs-primary-rgb), 0.1);
        color: var(--bs-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        font-size: 1.5rem;
    }
    /* Express entry End */
    /* Reuse specific styles from the previous accordion section */
/* Custom Accordion Styles */
    .accordion-item {
        border: none;
        margin-bottom: 15px;
        border-radius: 8px !important;
        overflow: hidden;
        box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    }
    
    .accordion-button {
        font-weight: 600;
        font-size: 1.1rem;
        color: var(--bs-primary);
        background-color: #fff;
    }
    
    .accordion-button:not(.collapsed) {
        color: #fff;
        background-color: var(--bs-primary);
        box-shadow: none;
    }
    
    .accordion-button:not(.collapsed)::after {
        filter: brightness(0) invert(1);
    }

    /* CRS Table Box Styling */
    .crs-highlight-box {
        background: #f8f9fa;
        border: 2px dashed var(--bs-primary);
        border-radius: 10px;
        transition: all 0.3s ease;
        cursor: pointer;
        position: relative;
    }
    
    .crs-highlight-box:hover {
        background: #eef1f6;
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .crs-link-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10;
    }

    /* Sub-section Styling */
    .program-details {
        background-color: #fff;
        padding: 20px;
    }

    .eligibility-box {
        background-color: #f9f9f9;
        border-left: 4px solid var(--bs-secondary);
        padding: 15px;
        margin-top: 15px;
    }
    
    .process-time-badge {
        display: inline-block;
        background: #e8f5e9;
        color: #2e7d32;
        padding: 5px 15px;
        border-radius: 20px;
        font-weight: 600;
        font-size: 0.9rem;
        margin-top: 10px;
    }

    .accordion-item {
        border: none;
        margin-bottom: 15px;
        border-radius: 8px !important;
        overflow: hidden;
        box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    }
    
    .accordion-button {
        font-weight: 700;
        font-size: 1.2rem;
        color: #00235B; /* Dark Blue Text */
        background-color: #fff;
        padding: 20px;
    }
    
    .accordion-button:not(.collapsed) {
        color: #fff;
        background-color: var(--bs-primary); /* Primary Theme Color */
        box-shadow: none;
    }
    
    .stream-box {
        background: #f8f9fa;
        border-left: 4px solid var(--bs-primary);
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 4px;
        transition: transform 0.2s;
    }
    
    .stream-box:hover {
        transform: translateX(5px);
        background: #fff;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }

    .stream-title {
        font-weight: 700;
        color: var(--bs-primary);
        margin-bottom: 5px;
        display: block;
    }

    .official-link-btn {
        background-color: rgba(var(--bs-primary-rgb), 0.1);
        color: var(--bs-primary);
        font-weight: 600;
        border: none;
        transition: all 0.3s;
    }
    
    .official-link-btn:hover {
        background-color: var(--bs-primary);
        color: #fff;
    }

    .benefit-icon {
        width: 40px;
        height: 40px;
        background: rgba(var(--bs-primary-rgb), 0.1);
        color: var(--bs-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        margin-right: 15px;
    }
    
    .pathway-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        border: 1px solid #eee;
    }
    
    .pathway-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
        border-color: var(--bs-primary);
    }

    .stat-box {
        background: var(--bs-primary);
        color: white;
        padding: 30px;
        border-radius: 10px;
        position: relative;
        overflow: hidden;
    }
    
    .stat-box::after {
        content: "\f5b0"; /* FontAwesome Plane Icon code */
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        position: absolute;
        right: -20px;
        bottom: -20px;
        font-size: 150px;
        opacity: 0.1;
        transform: rotate(-20deg);
    }
    /* This applies to the paragraph */
.custom-justify {
    text-align: justify;
    text-justify: inter-word; /* Smoother spacing */
    hyphens: none;
    -webkit-hyphens: none;
    line-height: 1.7; /* Improves readability */
}

/* On mobile screens (less than 768px wide) */
@media (max-width: 768px) {
    .custom-justify {
        text-align: left; /* Prevents weird gaps on small screens */
    }
}

/* Digital Office */
 .digital-office-btn {
    position: fixed;
    left: -75px;              /* adjust because button is wider */
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    z-index: 1050;
    animation: fadeIn 1s ease-in;
}

.digital-office-btn .btn {
    padding: 12px 28px;       /* bigger click area */
    font-size: 15px;          /* clearer text */
    font-weight: 600;
    letter-spacing: 0.5px;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* Digital Office End */

/* Bread Crumb Slash as white */
.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.7);
   
}

/* Bread Crumb Slash as white end */
/* End Slider Logo */
/* End Slider Logo */

/* Form Elements - Use Root Body Color */
.form-control,
.form-select,
.form-floating > label {
    color: var(--text-form);
}

.form-control::placeholder {
    color: var(--text-form);
    opacity: 0.6;
}

.form-control:focus,
.form-select:focus {
    color: var(--text-form);
}

.form-select option {
    color: var(--text-form);
    background-color: #fff;
}

textarea.form-control {
    color: var(--text-form);
}


    .study-abroad-img {
        min-height: 300px;
    }

    /* Height for Desktop (Large screens) */
    @media (min-width: 992px) {
        .study-abroad-img {
            min-height: 600px;
        }
    }    
