:root {
    --bs-primary: #d92328;
    --bs-secondary: #0d6efd;
    --bs-dark: #1b1b22;
    --bs-light: #f8f9fa;

    /* ===== HZGC Global Font System ===== */
    --font-body:    'Lato', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Raleway', var(--font-body);
    --bs-font-sans-serif: var(--font-body);
    --bs-font-heading:    var(--font-heading);

    /* ===== Brand Colours ===== */
    --pharma-blue:      #3E4FA3;
    --pharma-blue-dark: #2c387e;
    --medical-teal:     #2FA7A0;
    --light-grey:       #F8FAFC;
    --dark-grey:        #1E293B;
    --border-color:     #E2E8F0;

    /* ===== Type Scale ===== */
    --fs-xs:   0.72rem;   /* 11.5px — labels, tags, pills */
    --fs-sm:   0.82rem;   /* 13.1px — captions, breadcrumbs */
    --fs-base: 0.95rem;   /* 15.2px — body copy */
    --fs-md:   1.05rem;   /* 16.8px — lead / intro text */
    --fs-lg:   1.2rem;    /* 19.2px — sub-section text */
    --fs-h6:   0.9rem;    /* sidebar/card labels */
    --fs-h5:   1rem;      /* small headings */
    --fs-h4:   1.15rem;   /* card headings */
    --fs-h3:   1.5rem;    /* section sub-headings */
    --fs-h2:   2rem;      /* section headings */
    --fs-h1:   clamp(2.2rem, 4vw, 3.5rem); /* hero headings, fluid */
}

/* ===== Base ===== */
body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 400;
    line-height: 1.75;
    color: #334155;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p {
    font-size: var(--fs-base);
    line-height: 1.8;
    color: #475569;
}

small, .small { font-size: var(--fs-sm); }

/* ===== Headings ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.25;
    color: var(--dark-grey);
    letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); font-weight: 700; }
h6 { font-size: var(--fs-h6); font-weight: 700; }

/* ===== Utility overrides ===== */
.font-body    { font-family: var(--font-body)    !important; }
.font-heading { font-family: var(--font-heading) !important; }
.fw-800 { font-weight: 800 !important; }
.fw-700 { font-weight: 700 !important; }

/* Eyebrow / label style — used in section headers */
.text-eyebrow {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--medical-teal);
}

/* Lead body text */
.lead {
    font-size: var(--fs-md);
    font-weight: 400;
    line-height: 1.85;
    color: #475569;
}

/* Responsive heading scaling */
@media (max-width: 768px) {
    h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.25rem; }
}

/*** Spinner Start ***/

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

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

/*** Spinner End ***/


/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

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

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

.btn-md-square {
    width: 46px;
    height: 46px;
}

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

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

.back-to-top {
    position: fixed;
    width: 50px;
    height: 50px;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

/*** Button End ***/


/*** Topbar Start ***/

.topbar .top-info {
    letter-spacing: 1px;
}

.topbar .top-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar .top-link a {
    margin-right: 10px;
}

#note {
    width: 500px;
    overflow: hidden;
}

#note small {
    position: relative;
    display: inline-block;
    animation: mymove 20s infinite;
    animation-timing-function: all;
}

@keyframes mymove {
    from {
        left: -100%;
    }

    to {
        left: 100%;
    }
}

/*** Topbar End ***/


/*** Navbar Start ***/
.navbar .navbar-nav {
    padding: 10px 0;
}

.navbar .navbar-nav .nav-link {
    padding: 5px 8px; /* Reduced padding */
    color: black;
    font-size: 14px; /* Reduced font size from 18px */
    font-weight: 500;
    outline: none;
    white-space: nowrap;
}

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

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "font awesome 5 free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 4px;
    font-size: 12px;
}

.navbar .dropdown-menu {
    border-radius: 10px !important;
    padding: 1rem 0;
}

.navbar .dropdown-item {
    font-size: 14px;
    padding: 0.5rem 1.5rem;
}

.navbar .dropdown-header {
    font-weight: 700;
    color: var(--bs-primary);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

.btn.small {
    font-size: 12px;
    padding: 0.4rem 0.8rem !important;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    transition: .5s;
    opacity: 1;
}

/*** Navbar End ***/


/*** Carousel Start ***/

.carousel-item {
    position: relative;
}

.carousel-item::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .6);
}

.carousel-caption {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.carousel-item p {
    max-width: 700px;
    margin: 0 auto 35px auto;
}

.carousel-control-prev {
    width: 90px;
    height: 60px;
    position: absolute;
    top: 50%;
    left: 0;
    background: var(--bs-primary);
    border-radius: 0 50px 50px 0;
    opacity: 1;
}

.carousel-control-prev:hover {
    background: var(--bs-secondary);
    transition: .8s;
}

.carousel-control-next {
    width: 90px;
    height: 60px;
    position: absolute;
    top: 50%;
    right: 0;
    background: var(--bs-primary);
    border-radius: 50px 0 0 50px;
    opacity: 1;
}

.carousel-control-next:hover {
    background: var(--bs-secondary);
    transition: .8s;
}

.carousel-caption .carousel-content a button.carousel-content-btn1 {
    background: var(--bs-secondary);
    color: var(--bs-dark);
    opacity: 1;
    border: 0;
    border-radius: 20px;
}

.carousel-caption .carousel-content a button.carousel-content-btn1:hover {
    background: var(--bs-primary);
    color: #ffffff;
    border: 0;
    opacity: 1;
    transition: 1s;
    border-radius: 20px;
}

.carousel-caption .carousel-content a button.carousel-content-btn2 {
    background: var(--bs-primary);
    color: var(--bs-white);
    opacity: 1;
    border: 0;
    border-radius: 20px;
}

.carousel-caption .carousel-content a button.carousel-content-btn2:hover {
    background: var(--bs-secondary);
    color: var(--bs-dark);
    border: 0;
    opacity: 1;
    transition: 1s;
    border-radius: 20px;
}

#carouselId .carousel-indicators li {
    width: 30px;
    height: 10px;
    background: var(--bs-primary);
    margin: 10px;
    border-radius: 30px;
    opacity: 1;
}

#carouselId .carousel-indicators li:hover {
    background: var(--bs-secondary);
    opacity: 1;
}

@media (max-width: 992px) {
    .carousel-item {
        min-height: 500px;
    }

    .carousel-item img {
        min-height: 500px;
        object-fit: cover;
    }

    .carousel-item h1 {
        font-size: 40px !important;
    }

    .carousel-item p {
        font-size: 16px !important;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        min-height: 400px;
    }

    .carousel-item img {
        min-height: 400px;
        object-fit: cover;
    }

    .carousel-item h1 {
        font-size: 28px !important;
    }

    .carousel-item p {
        font-size: 14px !important;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)), url(../img/carousel-1.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);
}

/*** Carousel End ***/



/* Our Inverstment Section*/
/* Grayscale effect + hover color reveal */
.grayscale {
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.investment-card:hover .grayscale {
    filter: grayscale(0%);
}

/* Dark overlay gradient for better text readability */
.investment-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.15) 60%, transparent 100%);
    z-index: 1;
    opacity: 0.9;
    transition: opacity 0.4s ease;
}

.investment-card:hover::before {
    opacity: 1;
}

/* Ensure overlay text stays above gradient */
.card-overlay {
    z-index: 2;
}

/* Card height consistency */
.investment-card {
    aspect-ratio: 4 / 3;
    /* adjust ratio to match your images — try 3/2 or 4/3 */
    min-height: 320px;
    /* fallback */
}

/* Optional hover lift effect */
.investment-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.investment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Our Inverstment Section End*/

/*** Services Start ***/

.services .services-item {
    box-shadow: 0 0 60px rgba(0, 0, 0, .2);
    width: 100%;
    height: 100%;
    border-radius: 10px;
    padding: 10px 0;
    position: relative;
}


.services-content::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    border-radius: 10px 10px 0 0;
    background: rgba(217, 35, 40, 0.9);
    transition: .5s;
}

.services-content::after {
    top: 0;
    bottom: auto;
    border-radius: 10px 10px 10px 10px;
}

.services-item:hover .services-content::after {
    height: 100%;
    opacity: 1;
    transition: .5s;
}

.services-item:hover .services-content-icon {
    position: relative;
    z-index: 2;
}

.services-item .services-content-icon i,
.services-item .services-content-icon p {
    transition: .5s;
}

.services-item:hover .services-content-icon i {
    color: var(--bs-secondary) !important;
}

.services-item:hover .services-content-icon p {
    color: var(--bs-white);
}

/*** Services End ***/


/*** Project Start ***/

.project-img {
    position: relative;
    padding: 15px;
}

.project-img::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    top: 0;
    left: 0;
    background: var(--bs-secondary);
    border-radius: 10px;
    opacity: 1;
    z-index: -1;
    transition: .5s;
}

.project-img::after {
    content: "";
    width: 150px;
    height: 150px;
    position: absolute;
    right: 0;
    bottom: 0;
    background: var(--bs-primary);
    border-radius: 10px;
    opacity: 1;
    z-index: -1;
    transition: .5s;
}

.project-content {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.project-content a {
    display: inline-block;
    padding: 20px 25px;
    background: var(--bs-primary);
    border-radius: 10px;
}

.project-item:hover .project-content {
    opacity: 1;
    transition: .5s;
}

.project-item:hover .project-img::before,
.project-item:hover .project-img::after {
    opacity: 0;
}

/*** Project End ***/


/*** Blog Start ***/
.blog-item .blog-btn {
    z-index: 2;
}

.blog-btn .blog-btn-icon {
    height: 50px;
    position: relative;
    overflow: hidden;
}

.blog-btn-icon .blog-icon-2 {
    display: flex;
    position: absolute;
    top: 6px;
    left: -140px;

}

.blog-btn-icon:hover .blog-icon-2 {
    transition: 1s;
    left: 5px;
    top: 6px;
    padding-bottom: 5px;
}

.blog-icon-1 {
    position: relative;
    top: -4px;
}

.blog-btn-icon:hover .blog-icon-1 {
    top: 0;
    right: -140px;
    transition: 1s;
}

/*** Blog End ***/


/*** Team Start ***/

.team-item {
    border-top: 30px solid var(--bs-secondary) !important;
    background: rgba(239, 239, 241, 0.8);
}

.team-content::before {
    height: 200px;
    display: block;
    content: "";
    position: relative;
    top: -101px;
    background: var(--bs-secondary);
    clip-path: polygon(50% 50%, 100% 50%, 50% 100%, 0% 50%);
    padding: 60px;
    opacity: 1;
}

.team-img-icon {
    position: relative;
    margin-top: -200px;
    padding: 30px;
    padding-bottom: 0;
}

.team-img {
    border: 15px solid var(--bs-white);
}

.team-img img {
    border: 10px solid var(--bs-secondary);
    transition: .5s;
}

.team-item:hover h4 {
    color: var(--bs-primary);
    transition: .5s;
}

.team-item:hover .team-img img {
    transform: scale(1.05);
    border: 10px solid var(--bs-secondary);
}

.team-carousel .owl-stage {
    position: relative;
    width: 100%;
    height: 100%;
}

.team-carousel .owl-nav {
    position: absolute;
    top: -100px;
    right: 50px;
    display: flex;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
    width: 56px;
    height: 56px;
    border-radius: 56px;
    margin-left: 15px;
    background: var(--bs-primary);
    color: var(--bs-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

@media (max-width: 992px) {
    .team-carousel {
        margin-top: 3rem;
    }

    .team-carousel .owl-nav {
        top: -85px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        margin-left: -15px;
    }
}

/*** Team End ***/


/*** Testimonial Start ***/

.testimonial-item {
    background: #f1f4f9;
    /* Light blue-ish gray for testimonials */

}

.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: #cedef0;
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--bs-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;
}

/*** Testimonial End ***/


/*** Contact Start ***/
.contact-detail::before {
    position: absolute;
    content: "";
    height: 50%;
    width: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(rgb(210, 243, 235, 1), rgba(230, 250, 245, .3)), url(../img/background.jpg) center center no-repeat;
    background-size: cover;
    border-radius: 10px;
    z-index: -1;
}

.contact-map {
    background: #E92328;
}

.contact-form {
    background: #E92328;
}

/*** Contact End ***/


/*** Footer Start ***/

.footer a {
    transition: 0.3s;
}

.footer a:hover {
    color: var(--bs-primary) !important;
    padding-left: 5px;
}

.footer .btn-outline-primary:hover {
    color: #fff !important;
    padding-left: 0;
}

.footer .copyright {
    border-color: rgba(255, 255, 255, 0.1) !important;
}


/*** Chatbot Start ***/
#chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

#chatbot-toggle {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s;
}

#chatbot-toggle:hover {
    transform: scale(1.1);
}

#chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    height: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

#chatbot-messages {
    flex: 1;
    overflow-y: auto;
    background: #f8f9fa;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    max-width: 80%;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.chat-message.bot {
    align-self: flex-start;
    background: #e9ecef;
    color: #333;
    border-bottom-left-radius: 0;
}

.chat-message.user {
    align-self: flex-end;
    background: var(--bs-primary);
    color: white;
    border-bottom-right-radius: 0;
}

.chat-form {
    background: white;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.chat-form input,
.chat-form textarea {
    margin-bottom: 5px;
    font-size: 13px;
}


/*** Distribution Map Start ***/
.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.map-hotspot {
    position: absolute;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
}

.map-pulse {
    width: 100%;
    height: 100%;
    background: var(--bs-primary);
    border-radius: 50%;
    position: relative;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 rgba(233, 35, 40, 0.4);
}

.map-pulse::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: var(--bs-primary);
    border-radius: 50%;
    z-index: 2;
}

.map-tooltip {
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 200px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 20;
    pointer-events: none;
}

.map-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.map-hotspot:hover .map-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: 130%;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(233, 35, 40, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(233, 35, 40, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(233, 35, 40, 0);
    }
}

/*** Distribution Map End ***/


.navbar-toggler span.navbar-toggler-icon {
    background-color: var(--bs-primary);
    color: #E92328;
}

/* Container to hide overflow */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 10px 0;
}

/* Base style for the scrolling rows */
.marquee-content-left,
.marquee-content-right {
    display: inline-flex;
    gap: 30px;
}

/* Row 1 Animation: Left to Right */
.marquee-content-left {
    animation: scroll-left 40s linear infinite;
}

/* Row 2 Animation: Right to Left */
.marquee-content-right {
    animation: scroll-right 40s linear infinite;
}

/* Pause on hover */
.marquee-wrapper:hover .marquee-content-left,
.marquee-wrapper:hover .marquee-content-right {
    animation-play-state: paused;
}

/* Minimal Team Card Style */
.team-card-minimal {
    display: flex;
    align-items: center;
    background: transparent;
    min-width: 250px;
}

.team-card-minimal img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Keyframes */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}