/********** Template CSS **********/
:root {
    --primary: #FF3131;
    --secondary: #354F8E;
    --light: #EFF5F9;
    --dark: #1D2A4D;
    --glass: rgba(255, 255, 255, 0.85);
}

body {
    font-family: 'Inter', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
}

/* Animation Utilities */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Particle Container */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.btn {
    font-weight: 700;
    transition: .5s;
}

.btn:hover {
    -webkit-box-shadow: 0 8px 6px -6px #555555;
    -moz-box-shadow: 0 8px 6px -6px #555555;
    box-shadow: 0 8px 6px -6px #555555;
}

.text-primary {
    color: var(--primary) !important;
}

.btn-primary {
    color: #FFFFFF;
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 0;
    border-radius: 50% 50% 0 0;
    z-index: 99;
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Outfit', sans-serif;
    position: relative;
    margin-left: 30px;
    padding: 30px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: #FF3131;
}

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        bottom: 0;
        left: 50%;
        background: #FF3131;
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }
}

.hero-header {
    background: url(../image/Bloemed-Banner-Four.png) top right no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.hero-header .container {
    position: relative;
    z-index: 1;
}

.service-item {
    position: relative;
    height: 350px;
    padding: 0 30px;
    transition: .5s;
}

.service-item:hover,
.team-item:hover,
.price-carousel .bg-light:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-item .service-icon {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    transform: rotate(-14deg);
}

.service-item .service-icon i {
    transform: rotate(15deg);
}

.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;
}

.price-carousel::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    bottom: 0;
    left: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 49, 49, 0.05) 100%);
    border-radius: 8px 8px 50% 50%;
    z-index: -1;
}

.product-card {
    background: #FFFFFF;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    overflow: hidden;
}

.product-card img {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.product-card:hover img {
    transform: scale(1.1);
}

.product-overlay {
    background: linear-gradient(to top, rgba(255, 49, 49, 0.95), rgba(255, 49, 49, 0.6));
    opacity: 0.9;
    backdrop-filter: blur(2px);
}

.product-list-aligned {
    display: inline-block;
    text-align: left;
    margin-bottom: 1rem;
    padding-left: 0;
}

.product-list-aligned li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    list-style: none;
    font-size: 1.05rem;
    color: #555;
    transition: transform 0.3s ease;
}

.product-list-aligned li::before {
    content: "\f484";
    /* fa-pills */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--primary);
    font-size: 0.9em;
}

.product-list-aligned li:hover {
    transform: translateX(5px);
    color: var(--primary);
}

.price-carousel .owl-nav {
    margin-top: 35px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next {
    position: relative;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    font-size: 22px;
    border-radius: 45px;
    transition: .5s;
}

.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

@media (min-width: 576px) {
    .team-item .row {
        height: 350px;
    }
}

.team-carousel .owl-nav {
    position: absolute;
    padding: 0 45px;
    width: 100%;
    height: 45px;
    top: calc(50% - 22.5px);
    left: 0;
    display: flex;
    justify-content: space-between;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 40px;
    height: 40px;
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}

/* About Us Enhancements */
.about-feature-box {
    background: #FFFFFF;
    border-radius: 15px;
    padding: 25px 15px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.about-feature-box:hover::before {
    transform: scaleX(1);
}

.about-feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 71, 71, 0.15);
    border-color: rgba(255, 71, 71, 0.1);
}

.about-feature-box i {
    transition: all 0.4s ease;
    font-size: 2.5rem !important;
    /* Slightly smaller than 3x for balance */
    background: linear-gradient(45deg, var(--primary), #ff9999);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.about-feature-box:hover i {
    transform: scale(1.1) rotate(5deg);
}

.about-feature-box h6 {
    margin-top: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.floating-image {
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}



/* Medical Preloader */
#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;
}

.medical-loader {
    position: relative;
    width: 60px;
}

.price-carousel .owl-nav {
    margin-top: 35px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next {
    position: relative;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    font-size: 22px;
    border-radius: 45px;
    transition: .5s;
}

.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

@media (min-width: 576px) {
    .team-item .row {
        height: 350px;
    }
}

.team-carousel .owl-nav {
    position: absolute;
    padding: 0 45px;
    width: 100%;
    height: 45px;
    top: calc(50% - 22.5px);
    left: 0;
    display: flex;
    justify-content: space-between;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 40px;
    height: 40px;
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}

/* About Us Enhancements */
.about-feature-box {
    background: #FFFFFF;
    border-radius: 15px;
    padding: 25px 15px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.about-feature-box:hover::before {
    transform: scaleX(1);
}

.about-feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 71, 71, 0.15);
    border-color: rgba(255, 71, 71, 0.1);
}

.about-feature-box i {
    transition: all 0.4s ease;
    font-size: 2.5rem !important;
    /* Slightly smaller than 3x for balance */
    background: linear-gradient(45deg, var(--primary), #ff9999);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.about-feature-box:hover i {
    transform: scale(1.1) rotate(5deg);
}

.about-feature-box h6 {
    margin-top: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.floating-image {
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}



/* Medical Preloader */
#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;
}

.medical-loader {
    position: relative;
    width: 60px;
    height: 60px;
}

.medical-loader i {
    animation: heartbeat 1.5s infinite;
    font-size: 8rem;
    /* Increased from 6rem */
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(255, 49, 49, 0);
    }

    15% {
        transform: scale(1.5);
        text-shadow: 0 0 30px rgba(255, 49, 49, 0.5), 0 0 60px rgba(255, 49, 49, 0.2);
    }

    30% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(255, 49, 49, 0);
    }

    45% {
        transform: scale(1.3);
        text-shadow: 0 0 20px rgba(255, 49, 49, 0.4), 0 0 40px rgba(255, 49, 49, 0.1);
    }

    60% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(255, 49, 49, 0);
    }

    100% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(255, 49, 49, 0);
    }
}

.welcome-text {
    font-size: 2rem;
    color: #333;
    font-weight: 700;
    margin-top: 40px;
    opacity: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: cinematicFade 1.5s ease-out forwards 0.5s;
    text-align: center;
    background: linear-gradient(45deg, var(--primary), #333);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes cinematicFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
        letter-spacing: 2px;
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 4px;
    }
}

/* Update loader container to allow flexible height */
.medical-loader {
    position: relative;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Contact Us Modernization */
.contact-info-card {
    background: #FFFFFF;
    border-radius: 15px;
    padding: 40px 30px;
    height: 100%;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-info-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: var(--primary);
    opacity: 0.05;
    border-radius: 50% 0 0 0;
    z-index: -1;
    transition: all 0.4s ease;
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contact-info-card:hover::after {
    transform: scale(1.5);
    opacity: 0.1;
}

.contact-icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(255, 49, 49, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.contact-info-card:hover .contact-icon-wrapper {
    background: var(--primary);
    color: #fff;
    transform: rotateY(180deg);
}

.contact-info-card:hover .contact-icon-wrapper i {
    transform: rotateY(-180deg);
    /* Keep icon upright */
}

.contact-info-card h5 {
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.modern-form-container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.modern-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary);
}

.modern-input {
    background: #f8f9fa;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.modern-input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(255, 49, 49, 0.1);
}

.btn-modern-submit {
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    padding: 15px 30px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-modern-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 49, 49, 0.3);
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Careers Modernization */
.culture-box {
    background: #FFFFFF;
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-align: center;
}

.culture-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.culture-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 49, 49, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    transition: all 0.4s ease;
}

.culture-box:hover .culture-icon {
    background: var(--primary);
    color: #fff;
    transform: rotate(360deg);
}

.job-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-left: 5px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.job-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.job-card h4 {
    font-weight: 700;
    margin-bottom: 5px;
}

.job-meta span {
    font-size: 0.9rem;
    color: #6c757d;
    margin-right: 15px;
}

.job-meta i {
    color: var(--primary);
    margin-right: 5px;
}

.btn-apply {
    background: rgba(255, 49, 49, 0.1);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.job-card:hover .btn-apply {
    background: var(--primary);
    color: #fff;
}

.file-upload-wrapper {
    position: relative;
    width: 100%;
    height: 55px;
    border: 1px dashed #ced4da;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding-left: 20px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.file-upload-wrapper:hover {
    border-color: var(--primary);
    background: #fff;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-text {
    color: #6c757d;
    pointer-events: none;
}

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Interactive Footer */
.footer-link {
    transition: all 0.3s ease;
}

.footer-link:hover {
    padding-left: 10px;
    color: var(--primary) !important;
}

.footer-social-icon {
    transition: all 0.4s ease;
}

.footer-social-icon:hover {
    transform: translateY(-5px) rotate(360deg);
    background-color: #FFFFFF !important;
    color: var(--primary) !important;

    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Interactive Dropdowns */
.dropdown-menu {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 15px;
    animation: fadeDown 0.3s ease-out;
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #555;
    position: relative;
    overflow: hidden;
}

.dropdown-item:hover {
    background: #fff0f0;
    /* Very light primary tint */
    color: var(--primary);
    transform: translateX(10px);
    padding-left: 20px;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 0;
    width: 3px;
    background: var(--primary);
    transition: height 0.3s ease;
}

.dropdown-item:hover::before {
    height: 70%;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Careers Benefits Animation */
.culture-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid #eee;
}

.culture-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 49, 49, 0.15);
    /* Primary color shadow */
    border-color: var(--primary);
}

.culture-card i {
    color: var(--primary);
    transition: all 0.4s ease;
}

.culture-card:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* Footer Interactivity */
.footer-link {
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--primary) !important;
    padding-left: 10px;
}

.footer-social-icon {
    transition: all 0.3s ease;
}

.footer-social-icon:hover {
    background: var(--light) !important;
    color: var(--primary) !important;
    transform: translateY(-5px);
}

/* Topbar Interactivity */
.topbar-item {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.topbar-item:hover {
    color: var(--primary) !important;
    transform: translateY(-2px);
}

.topbar-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.topbar-social-icon:hover {
    background: var(--primary);
    color: #fff !important;
    transform: translateY(-3px) rotate(360deg);
    box-shadow: 0 5px 15px rgba(255, 49, 49, 0.4);
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

/* Extra Small Devices (Phones, 320px - 575px) */
@media (max-width: 575.98px) {

    /* Typography */
    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    h4 {
        font-size: 1.1rem !important;
    }

    h5 {
        font-size: 1rem !important;
    }

    h6 {
        font-size: 0.9rem !important;
    }

    .display-4 {
        font-size: 2rem !important;
    }

    .display-6 {
        font-size: 1.5rem !important;
    }

    /* Navbar */
    .navbar-brand img {
        width: 120px !important;
    }

    .navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        font-size: 16px;
    }

    /* Hero Section */
    .hero-header {
        min-height: 400px;
        background-position: center;
        padding: 60px 0 !important;
    }

    .hero-header h4 {
        font-size: 1.1rem !important;
    }

    .hero-header h5 {
        font-size: 0.9rem !important;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .btn-lg {
        padding: 12px 25px;
        font-size: 15px;
    }

    .btn.rounded-pill {
        padding: 10px 20px;
    }

    /* Service Items */
    .service-item {
        height: auto;
        padding: 30px 20px;
        margin-bottom: 20px;
    }

    .service-item .service-icon {
        width: 100px;
        height: 80px;
    }

    .service-item .service-icon i {
        font-size: 2rem !important;
    }

    /* Product Cards */
    .product-card {
        margin-bottom: 20px;
    }

    .product-card .text-center {
        padding: 20px !important;
    }

    .product-list-aligned li {
        font-size: 0.95rem;
        padding-left: 25px;
    }

    /* About Feature Boxes */
    .about-feature-box {
        padding: 20px 10px;
        margin-bottom: 15px;
    }

    .about-feature-box i {
        font-size: 2rem !important;
    }

    /* Contact Info Cards */
    .contact-info-card {
        padding: 30px 20px;
        margin-bottom: 20px;
    }

    .contact-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .contact-icon-wrapper i {
        font-size: 1.5rem !important;
    }

    /* Forms */
    .modern-form-container {
        padding: 25px;
    }

    .modern-input {
        padding: 12px 15px;
        font-size: 14px;
        min-height: 44px;
    }

    .btn-modern-submit {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
    }

    /* Team Items */
    .team-item .row {
        height: auto !important;
    }

    .team-item h3 {
        font-size: 1.25rem !important;
    }

    /* Footer */
    .footer-link {
        font-size: 14px;
    }

    .footer-social-icon {
        width: 40px;
        height: 40px;
    }

    /* Spacing Adjustments */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .container-fluid.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .mb-5 {
        margin-bottom: 2rem !important;
    }

    .mt-5 {
        margin-top: 2rem !important;
    }

    /* Back to Top Button */
    .back-to-top {
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    /* Owl Carousel Navigation */
    .price-carousel .owl-nav,
    .team-carousel .owl-nav {
        padding: 0 15px;
    }

    .price-carousel .owl-nav .owl-prev,
    .price-carousel .owl-nav .owl-next,
    .team-carousel .owl-nav .owl-prev,
    .team-carousel .owl-nav .owl-next {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    /* Job Cards (Careers) */
    .job-card {
        padding: 20px;
    }

    .job-card h4 {
        font-size: 1.1rem !important;
    }

    .job-meta span {
        font-size: 0.85rem;
        display: block;
        margin-bottom: 5px;
    }

    /* Culture Boxes */
    .culture-box,
    .culture-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    .culture-icon {
        width: 60px;
        height: 60px;
    }

    /* Map Container */
    .map-container iframe {
        min-height: 300px !important;
    }

    /* Dropdown Menu */
    .dropdown-menu {
        padding: 10px;
    }

    .dropdown-item {
        padding: 8px 12px;
        font-size: 14px;
    }

    /* Welcome Text (Spinner) */
    .welcome-text {
        font-size: 1.25rem !important;
    }

    .medical-loader i {
        font-size: 5rem !important;
    }

    /* Topbar - Hide on mobile */
    .container-fluid.py-2.border-bottom {
        display: none !important;
    }

    /* Navbar Padding */
    .navbar {
        padding: 10px 0 !important;
    }

    /* Product Overlay Text */
    .product-overlay h3 {
        font-size: 1.25rem !important;
    }

    /* Floating Image */
    .floating-image {
        animation: none;
    }

    /* Ensure no horizontal scroll */
    body {
        overflow-x: hidden;
    }

    .container-fluid {
        overflow-x: hidden;
    }
}

/* Small Devices (Landscape Phones, 576px - 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {

    /* Typography */
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    .display-4 {
        font-size: 2.25rem !important;
    }

    /* Navbar */
    .navbar-brand img {
        width: 140px !important;
    }

    /* Hero Section */
    .hero-header {
        min-height: 450px;
        padding: 80px 0 !important;
    }

    /* Service Items */
    .service-item {
        height: auto;
        padding: 35px 25px;
    }

    /* Buttons */
    .btn {
        padding: 12px 25px;
    }

    /* Spacing */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    /* Topbar - Show on landscape phones */
    .container-fluid.py-2.border-bottom {
        display: block !important;
    }

    .topbar-item,
    .topbar-social-icon {
        font-size: 14px;
    }
}

/* Medium Devices (Tablets, 768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {

    /* Typography */
    h1 {
        font-size: 2.25rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    h3 {
        font-size: 1.75rem !important;
    }

    .display-4 {
        font-size: 2.5rem !important;
    }

    .display-6 {
        font-size: 2rem !important;
    }

    /* Navbar */
    .navbar-brand img {
        width: 150px !important;
    }

    .navbar-light .navbar-nav .nav-link {
        margin-left: 15px;
        font-size: 16px;
    }

    /* Hero Section */
    .hero-header {
        min-height: 500px;
        padding: 100px 0 !important;
    }

    /* Service Items */
    .service-item {
        height: 320px;
        padding: 25px;
    }

    /* Product Cards - 2 columns */
    .price-carousel .owl-item {
        width: 50%;
    }

    /* About Feature Boxes */
    .about-feature-box {
        padding: 22px 12px;
    }

    /* Contact Cards */
    .contact-info-card {
        padding: 35px 25px;
    }

    /* Forms */
    .modern-form-container {
        padding: 35px;
    }

    /* Team Items */
    .team-item .row {
        height: 320px !important;
    }

    /* Spacing */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    /* Back to Top */
    .back-to-top {
        right: 20px;
    }
}

/* Large Devices (Desktops, 992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {

    /* Typography - Slightly smaller than XL */
    h1 {
        font-size: 2.5rem !important;
    }

    .display-4 {
        font-size: 3rem !important;
    }

    /* Navbar */
    .navbar-light .navbar-nav .nav-link {
        margin-left: 20px;
        font-size: 17px;
    }

    /* Service Items */
    .service-item {
        height: 340px;
    }

    /* Product Cards - 3 columns */
    .price-carousel .owl-item {
        width: 33.333%;
    }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Default desktop styles already defined above */
    /* This breakpoint maintains the original design */
}

/* Landscape Orientation Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-header {
        min-height: 350px;
        padding: 40px 0 !important;
    }

    .service-item {
        height: auto;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Increase touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Remove hover effects on touch devices */
    .service-item:hover,
    .product-card:hover,
    .about-feature-box:hover {
        transform: none;
    }

    /* Disable animations that might cause issues */
    .floating-image {
        animation: none;
    }
}

/* Print Styles */
@media print {

    .navbar,
    .footer,
    .back-to-top,
    #spinner {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    h1 {
        font-size: 18pt !important;
    }

    h2 {
        font-size: 16pt !important;
    }
}

/* High DPI Displays (Retina) */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    /* Ensure images look crisp on retina displays */
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-image {
        animation: none !important;
    }

    .medical-loader i {
        animation: none !important;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    /* Placeholder for future dark mode implementation */
    /* Currently maintaining light theme for consistency */
}

/* ========================================
   HERO SECTION INTERACTIVE ANIMATIONS
   ======================================== */

/* Welcome Text Animation */
.hero-welcome-text {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #FF3131 0%, #1D2A4D 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.hero-welcome-text span {
    background: linear-gradient(135deg, #FF3131 0%, #1D2A4D 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Brand Name Animations */
.hero-brand-name {
    display: inline-block;
    opacity: 0;
    animation: fadeInScale 0.8s ease-out 0.6s forwards;
    font-weight: 800 !important;
    font-size: 1.1em;
    color: #1D2A4D !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}

.hero-brand-name-red {
    display: inline-block;
    color: #FF3131 !important;
    opacity: 0;
    animation: fadeInScale 0.8s ease-out 0.8s forwards, glow 2s ease-in-out 1.5s infinite;
    font-weight: 800 !important;
    font-size: 1.1em;
    text-shadow: 0 0 10px rgba(255, 49, 49, 0.5), 2px 2px 4px rgba(255, 49, 49, 0.3);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glow {

    0%,
    100% {
        text-shadow: 0 0 5px rgba(255, 49, 49, 0.3);
    }

    50% {
        text-shadow: 0 0 20px rgba(255, 49, 49, 0.6), 0 0 30px rgba(255, 49, 49, 0.4);
    }
}

/* Tagline Animation */
.hero-tagline {
    opacity: 0;
    animation: slideInLeft 1s ease-out 1s forwards;
    font-size: 2rem !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 15px !important;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Dedication Text - Typing Effect */
.hero-dedication {
    display: inline-block;
    opacity: 0;
    animation: typeIn 1.5s steps(40) 1.5s forwards;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #FF3131;
    animation: typeIn 1.5s steps(40) 1.5s forwards, blink 0.75s step-end 1.5s 3;
    background: linear-gradient(135deg, #FF3131 0%, #354F8E 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700 !important;
    font-size: 1.1em;
    padding-left: 5px;
}

@keyframes typeIn {
    from {
        opacity: 1;
        width: 0;
    }

    to {
        opacity: 1;
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* CTA Button Animation */
.hero-cta-btn {
    opacity: 0;
    animation: fadeInBounce 1s ease-out 2.5s forwards, pulse 2s ease-in-out 3.5s infinite;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }

    60% {
        transform: translateY(-5px) scale(1.05);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 49, 49, 0.7);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(255, 49, 49, 0);
    }
}

/* CTA Button Hover Effects */
.hero-cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 49, 49, 0.4) !important;
}

.hero-cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-cta-btn:hover::before {
    width: 300px;
    height: 300px;
}

.hero-cta-btn span,
.hero-cta-btn i {
    position: relative;
    z-index: 1;
}

.hero-cta-btn i {
    transition: transform 0.3s ease;
}

.hero-cta-btn:hover i {
    transform: translateX(5px);
}

/* Mobile Optimizations for Hero Animations */
@media (max-width: 767.98px) {
    .hero-dedication {
        animation: fadeIn 1s ease-out 1.5s forwards;
        border-right: none;
        white-space: normal;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .hero-cta-btn {
        animation: fadeInBounce 1s ease-out 2s forwards;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    .hero-welcome-text,
    .hero-brand-name,
    .hero-brand-name-red,
    .hero-tagline,
    .hero-dedication,
    .hero-cta-btn {
        animation: none !important;
        opacity: 1 !important;
    }

    .hero-dedication {
        border-right: none;
    }
}