/* ============================================
   Medical Equipment Website - Modern CSS
   Eye-catching design with health theme colors
   ============================================ */

:root {
    /* Caremed Theme Colors */
    --caremed-blue: rgba(33, 84, 149, 1);
    --caremed-green: rgba(84, 148, 64, 1);
    --caremed-red: rgba(240, 145, 51, 1);
    --caremed-dark: #1a1a2e;
    --caremed-light-bg: #f8f9fa;

    /* Original Health Theme Colors (Keeping for compatibility or fallback) */
    --primary-blue: #0066CC;
    --primary-green: #00A86B;
    --secondary-blue: #4A90E2;
    --secondary-green: #2ECC71;
    --accent-teal: #17A2B8;
    --dark-blue: #003366;
    --light-blue: #E3F2FD;
    --light-green: #E8F5E9;

    /* Neutral Colors */
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --gray: #6C757D;
    --dark-gray: #343A40;
    --black: #000000;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--caremed-blue) 0%, rgba(20, 60, 110, 1) 100%);
    --gradient-success: linear-gradient(135deg, var(--caremed-green) 0%, #27ae60 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(33, 84, 149, 0.95) 0%, rgba(20, 60, 110, 0.95) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

body.page-loaded {
    opacity: 1;
}

body.page-leaving {
    opacity: 0;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero-section,
.page-header {
    padding-top: 40px !important;
    padding-bottom: 20px !important;
    min-height: auto !important;
    /* Ultra-compact vertical space */
}

@media (min-width: 992px) {

    .hero-section .container,
    .page-header .container {
        padding-left: 380px !important;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
        /* Shift content and ultra-tight internal space */
    }
}

@media (max-width: 991px) {

    .hero-section .container,
    .page-header .container {
        padding-left: var(--bs-gutter-x, .75rem) !important;
        /* Reset shift on mobile */
    }

    .hero-section,
    .page-header {
        padding-top: 50px !important;
        /* Reset vertical gap on mobile */
    }
}

.page-header h1 {
    font-size: 2.5rem !important;
    margin-bottom: 5px !important;
}

.page-header .breadcrumb {
    font-size: 0.9rem;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.page-header h1,
.page-header .display-4 {
    color: white !important;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--secondary-blue);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.navbar {
    background: var(--white);
    box-shadow: none;
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-normal);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    box-shadow: var(--shadow-md);
}

/* Header Top Bar */
.header-top {
    background: var(--caremed-blue);
    padding: 6px 0;
    /* Slightly tighter */
    color: white;
    font-size: 0.8rem;
}

.btn-wa-top {
    background: var(--caremed-green);
    color: white !important;
    padding: 4px 15px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-wa-top:hover {
    background: #467c35;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.top-bar-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.top-bar-right a {
    margin-right: 0 !important;
    margin-left: 0 !important;
    white-space: nowrap;
}

.header-top a {
    color: rgba(255, 255, 255, 0.8);
    margin-right: 15px;
    transition: var(--transition-fast);
}

.header-top a:hover {
    color: white;
}

.header-top .btn-emergency {
    background: var(--caremed-red);
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--dark-gray);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--primary-blue);
}

/* ============================================
   HERO BANNER SLIDER
   ============================================ */

.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
}

.hero-section {
    position: relative;
    color: white;
}

.hero-text h1 {
    color: white !important;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.9) !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-normal);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-success {
    background: var(--gradient-success);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-hero-primary {
    background: var(--caremed-green);
    color: white !important;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(84, 148, 64, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.btn-hero-primary:hover {
    background: #467c35;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(84, 148, 64, 0.6);
    color: white !important;
}

.btn-hero-primary i {
    transition: transform 0.3s ease;
}

.btn-hero-primary:hover i {
    transform: translateX(5px);
}

.btn-hero-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-hero-primary:hover::after {
    left: 100%;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: var(--light-gray);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-success);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.product-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--primary-blue);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-description {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.price-current {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-green);
}

.price-original {
    font-size: 1.25rem;
    color: var(--gray);
    text-decoration: line-through;
}

.product-footer {
    display: flex;
    gap: 0.5rem;
}

.product-footer .btn {
    flex: 1;
    padding: 0.75rem;
    font-size: 0.875rem;
}

/* ============================================
   SERVICE CARDS
   ============================================ */

/* ============================================
   HERO FEATURE BOXES
   ============================================ */

.hero-feature-boxes {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.feature-box {
    padding: 30px;
    color: white;
    height: 100%;
    transition: var(--transition-normal);
}

.feature-box.box-hours {
    background: var(--caremed-blue) !important;
}

.feature-box.box-appointment {
    background: var(--caremed-green) !important;
}

.feature-box.box-emergency {
    background: var(--caremed-red) !important;
}

.feature-box h4,
.feature-box h2,
.feature-box p,
.feature-box ul li {
    color: white !important;
}

.feature-box p {
    opacity: 0.9;
}

/* ============================================
   SERVICE CARDS (Caremed Style)
   ============================================ */

.service-card {
    background: var(--white);
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
    height: 100%;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--caremed-green);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--caremed-green);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--caremed-blue);
    font-weight: 700;
}

.service-description {
    color: #777;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ============================================
   SECTION STYLES
   ============================================ */

.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonial-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    margin-top: 2rem;
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--primary-blue);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-blue);
}

.author-info h5 {
    margin-bottom: 0.25rem;
    color: var(--dark-blue);
}

.author-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray);
}

.testimonial-rating {
    color: #FFD700;
    margin-top: 0.5rem;
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition-normal);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.whatsapp-float i {
    font-size: 2rem;
    color: var(--white);
}

@keyframes pulse {

    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

.whatsapp-float-new {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white !important;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    animation: pulse-wa 2s infinite;
}

.whatsapp-float-new:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
    background: #20ba5a;
}

.whatsapp-float-new i {
    font-size: 1.5rem;
}

@keyframes pulse-wa {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float-new span {
        display: none;
    }

    .whatsapp-float-new {
        padding: 15px;
        bottom: 20px;
        right: 20px;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: rgba(20, 45, 82, 1) !important;
    color: var(--white);
    padding: 0;
    /* Let internal container handle padding */
    border-top: 6px solid rgba(84, 148, 64, 1);
}

.footer .container {
    padding: 5rem 0 3rem;
}

.footer h4,
.footer h5 {
    color: rgba(240, 145, 51, 1) !important;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: rgba(84, 148, 64, 1) !important;
    padding-left: 5px;
}

.footer .fas,
.footer .far,
.footer .fab {
    color: rgba(84, 148, 64, 1) !important;
}

.footer-bottom {
    background: rgba(15, 35, 65, 1);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .hero-slider,
    .hero-slide {
        height: 400px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */

.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================
   PREMIUM ENHANCEMENTS
   ============================================ */

/* Animated Gradient Background for Hero */
.bg-primary {
    background: linear-gradient(135deg, #0066CC 0%, #00A86B 100%) !important;
    position: relative;
    overflow: hidden;
}

.bg-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Card Enhancements */
.card {
    border: none !important;
    border-radius: 20px !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 168, 107, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.2) !important;
}

/* Image Zoom Effect */
.card-img-top {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover .card-img-top {
    transform: scale(1.1) rotate(2deg);
}

/* Badge Enhancements */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.badge.bg-danger {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #00A86B 0%, #2ECC71 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #FFD93D 0%, #FFC107 100%) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #17A2B8 0%, #00BCD4 100%) !important;
}

/* Alert Enhancements */
.alert {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid;
}

.alert-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(0, 188, 212, 0.1) 100%);
    border-left-color: #17A2B8;
}

.alert-success {
    background: linear-gradient(135deg, rgba(0, 168, 107, 0.1) 0%, rgba(46, 204, 113, 0.1) 100%);
    border-left-color: #00A86B;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.1) 0%, rgba(255, 193, 7, 0.1) 100%);
    border-left-color: #FFD93D;
}

/* Form Enhancements */
.form-control,
.form-select {
    border: 2px solid #E9ECEF;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #0066CC;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
    transform: translateY(-2px);
}

/* List Group Enhancements */
.list-group-item {
    border: none;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background: linear-gradient(90deg, rgba(0, 102, 204, 0.05) 0%, transparent 100%);
    border-left-color: #0066CC;
    transform: translateX(5px);
}

.list-group-item.active {
    background: linear-gradient(135deg, #0066CC 0%, #00A86B 100%);
    border-left-color: #00A86B;
}

/* Icon Animations */
.fa,
.fas,
.far,
.fab {
    transition: all 0.3s ease;
}

.card:hover .fa,
.card:hover .fas,
.card:hover .far,
.card:hover .fab {
    transform: scale(1.1);
}

/* Breadcrumb Enhancements */
.breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Table Enhancements */
.table {
    border-radius: 15px;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, #0066CC 0%, #00A86B 100%);
    color: white;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: linear-gradient(90deg, rgba(0, 102, 204, 0.05) 0%, transparent 100%);
    transform: scale(1.01);
}

/* Scroll Animations */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Spinner */
.spinner-border {
    border-width: 3px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Hover Glow Effect */
.hover-glow {
    position: relative;
    transition: all 0.3s ease;
}

.hover-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    pointer-events: none;
}

.hover-glow:hover::after {
    width: 300px;
    height: 300px;
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #0066CC 0%, #00A86B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating Animation */
.float-animation {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Pulse Animation */
.pulse-animation {
    animation: pulse-scale 2s ease-in-out infinite;
}

@keyframes pulse-scale {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: rgba(0, 102, 204, 0.3);
    color: #000;
}

::-moz-selection {
    background: rgba(0, 102, 204, 0.3);
    color: #000;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0066CC 0%, #00A86B 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00A86B 0%, #0066CC 100%);
}

/* Footer Link Hover Effects */
footer a:hover {
    color: #ffffff !important;
    transform: translateX(3px);
}

footer .fab:hover,
footer .fas:hover {
    transform: scale(1.2);
    color: #00A86B !important;
}

/* Navbar Logo Refinement - Hanging Box Effect */
.logo-box {
    background: white;
    padding: 15px 25px 25px;
    /* Reduced top padding */
    position: absolute;
    top: -45px;
    /* Lowered to account for shorter height */
    left: 60px;
    z-index: 1001;
    border-bottom: 6px solid var(--caremed-green);
    transition: all 0.4s ease;
    width: 280px;
    height: 230px;
    /* More compact height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
    border-radius: 0 0 25px 25px;
}

.navbar-brand {
    margin: 0;
    padding: 0;
}

.logo-main-row {
    transition: all 0.4s ease;
}

.logo-img {
    height: 140px;
    /* Adjusted image size */
    width: auto;
    max-width: 90%;
    object-fit: contain;
    transition: all 0.4s ease;
    margin-bottom: 12px;
}

.navbar-brand .tracking-tight {
    letter-spacing: -1.5px;
    line-height: 1;
    font-size: 1.8rem !important;
    /* Slightly smaller for single line layout */
    margin-bottom: 5px;
    text-align: center;
    white-space: nowrap;
}

.logo-tagline {
    font-size: 11px;
    color: #666;
    letter-spacing: 1.5px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    max-width: 90%;
    white-space: nowrap;
}

.top-bar-links {
    padding-left: 380px !important;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    min-height: 40px;
    /* Ensure consistent height */
}

.top-bar-links a {
    margin-right: 0 !important;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* Space between icon and text */
}

/* Sticky Navbar Adjustments for Logo Box */
.navbar.is-sticky .logo-box {
    top: 0;
    padding: 10px;
    width: 120px;
    height: 120px;
}

.navbar.is-sticky .logo-box .fs-2,
.navbar.is-sticky .logo-box .tracking-tight,
.navbar.is-sticky .logo-box .logo-tagline {
    display: none !important;
}

.navbar.is-sticky .logo-box .logo-img {
    height: 80px;
    /* Slightly larger in sticky since text is gone */
    margin-bottom: 0;
}

.navbar.is-sticky .logo-box .logo-tagline {
    display: none;
}

/* Responsive Logo Box and Navbar */
@media (max-width: 991px) {
    .logo-box {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        margin: 15px auto !important;
        width: 220px !important;
        height: 220px !important;
        padding: 20px !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
        border-radius: 15px !important;
    }

    /* Mobile Sticky Adjustments */
    .navbar.is-sticky .logo-box {
        margin: 0 !important;
        width: 100px !important;
        height: 60px !important;
        padding: 8px !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
        border-bottom: 3px solid var(--caremed-green) !important;
    }

    .navbar.is-sticky .logo-box .logo-img {
        height: 44px !important;
        margin-bottom: 0 !important;
    }

    .navbar.is-sticky .logo-box .logo-tagline,
    .navbar.is-sticky .logo-box .tracking-tight {
        display: none !important;
    }

    .navbar {
        padding-left: 0 !important;
    }

    .top-bar-links {
        padding-left: 0 !important;
        justify-content: center;
    }

    .logo-img {
        height: 120px !important;
    }

    .navbar-brand .tracking-tight {
        font-size: 1.5rem !important;
    }

    .logo-tagline {
        font-size: 10px !important;
        letter-spacing: 1px !important;
    }

    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
    }
}

/* Sticky Navbar Styles */
.navbar {
    transition: all 0.4s ease;
    z-index: 1000;
    background: white;
    min-height: 80px;
    padding-left: 380px;
    /* Space for the logo box */
}

@media (max-width: 1199px) {
    .navbar {
        padding-left: 280px;
    }

    .top-bar-links {
        padding-left: 260px !important;
    }
}

.navbar.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    min-height: 60px;
    padding: 5px 0;
    animation: slideDown 0.4s ease;
}

@media (max-width: 991px) {
    .navbar.is-sticky .container {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 15px !important;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.header-top {
    transition: margin-top 0.4s ease;
}

/* Hero Text Shadow for better contrast on lighter overlay */
.hero-text h1,
.hero-text p {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* ==============================
   PRODUCT SIDEBAR NAVIGATION
   ============================== */

/* Sidebar Navigation Styles */
.sidebar-navigation {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.sidebar-menu {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.brand-section {
    border-radius: 0;
}

.brand-header {
    background-color: #f8f9fa;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.brand-header:hover {
    background-color: #e9ecef;
    text-decoration: none;
}

.brand-header.bg-primary {
    background-color: var(--bs-primary) !important;
    color: white !important;
}

.brand-header.bg-primary:hover {
    background-color: var(--bs-primary) !important;
    color: white !important;
}

.category-header {
    background-color: #ffffff;
    transition: all 0.2s ease;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.category-header:hover {
    background-color: #f8f9fa;
    text-decoration: none;
}

.category-header.bg-success {
    background-color: var(--bs-success) !important;
    color: white !important;
}

.category-header.bg-success:hover {
    background-color: var(--bs-success) !important;
    color: white !important;
}

.cursor-pointer {
    cursor: pointer;
}

.product-link {
    transition: all 0.2s ease;
}

.product-link:hover {
    background-color: #e9ecef !important;
    text-decoration: none;
}

.hover-bg-light:hover {
    background-color: #f8f9fa !important;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--caremed-green);
    color: white;
}

/* Collapsible Sections */
.collapse:not(.show) {
    display: none;
}

.collapse.show {
    display: block;
}

.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}

/* Badge Styles */
.badge {
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .sidebar-navigation {
        position: static !important;
        max-height: none;
        margin-bottom: 2rem;
    }

    .sidebar-menu {
        max-height: none;
    }
}

/* Scrollbar Styling */
.sidebar-navigation::-webkit-scrollbar {
    width: 6px;
}

.sidebar-navigation::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sidebar-navigation::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.sidebar-navigation::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}