/* Custom Styles for Pathology Lab Website */
:root {
    --primary-green: #2C5F2D;
    --secondary-green: #4A9C4A;
    --accent-orange: #FF6B35;
    --light-bg: #F8F9FA;
}

* {
    font-family: 'Open Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6, .display-*, .navbar-brand {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600;
}

/* Navigation */
#mainNav {
    padding: 1rem 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#mainNav.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.95) !important;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-green) !important;
}

/* Hero Section */
.hero-section {
    padding-top: 100px;
    
}

.hero-section .display-4 {
    line-height: 1.2;
}

/* Cards Hover Effect */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

/* Trust Bar */
.trust-bar {
    font-size: 0.85rem;
}

/* Stats Section */
.bg-gradient-success {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
}

.counter {
    font-size: 6rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
   
}

/* Floating Buttons */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    animation: whatsapp-bounce 2s infinite;
    text-decoration: none;
}

.whatsapp-icon {
    margin-top: 16px;
}

@keyframes whatsapp-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 120px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Custom Buttons */
.btn-success {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-success:hover {
    background-color: var(--secondary-green);
    border-color: var(--secondary-green);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 80px 0;
}

section.py-5 {
    padding: 5rem 0 !important;
}

/* Footer */
footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-green) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px;
        text-align: center;
    }
    
    .hero-section .col-lg-6:first-child {
        order: 2;
    }
    
    .hero-section .col-lg-6:last-child {
        order: 1;
        margin-bottom: 2rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 90px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-green);
}

/* Timeline Styles */
/*.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #4A9C4A, #2C5F2D);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-icon {
    position: absolute;
    left: -45px;
    top: 5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.timeline-content h4 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}
*/
/* Timeline Container */
.timeline {
    position: relative;
    margin: 0 auto;
    padding: 20px 0;
    max-width: 800px;
}

/* Vertical Line */
.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, #4A9C4A, #2C5F2D);
}

/* Timeline Item */
.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

/* Icon */
.timeline-icon {
    position: absolute;
    left: 5px;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #2C5F2D;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    z-index: 2;
}

/* Content Box */
.timeline-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* Title */
.timeline-content h4 {
    color: #2C5F2D;
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-icon {
        left: 0;
    }
}
/* Test Cards */
.test-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.test-card:hover {
    border-color: var(--primary-green) !important;
    box-shadow: 0 10px 30px rgba(44, 95, 45, 0.15) !important;
}

.map-container {
    height: 400px;
}

/* Form Enhancements */
.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(44, 95, 45, 0.25);
}


.table-scroll {
    max-height: 300px;
    overflow-y: auto;
    min-width: 700px; /* forces horizontal scroll on mobile */
    border-radius: 10px;
}

/* Sticky header */
.table-scroll thead th {
    position: sticky;
    top: 0;
    background: #d1e7dd;
    z-index: 5;
}

/* Fix border overlap */
.table {
    border-collapse: separate;
    border-spacing: 0;
}