/* CyberMed Design System */
:root {
    /* Brand Colors - Standardized Teal Palette */
    --color-primary: #2c7873;
    --color-primary-dark: #235e5a;
    --color-primary-light: #7cc5ff;
    --color-secondary: #1d5c58;
    --color-secondary-dark: #154643;

    /* Neutral Colors */
    --color-white: #ffffff;
    --color-gray-50: #f8f9fa;
    --color-gray-100: #e9ecef;
    --color-gray-200: #eef2f7;
    --color-gray-700: #4a4a4a;
    --color-gray-800: #2c2d3f;
    --color-black: #000000;

    /* Typography */
    --font-family: 'Inter', sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-hero: 3.5rem;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    --section-padding: 100px 0;

    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 20px rgba(44, 120, 115, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --radius-sm: 5px;
    --radius-md: 15px;
    --radius-lg: 20px;

    /* Gradients */
    --bg-teal-gradient: linear-gradient(135deg, #2c7873, #235e5a);
}

.text-primary {
    color: var(--color-primary) !important;
}

.text-secondary {
    color: var(--color-secondary) !important;
}

.text-gray-900 {
    color: var(--color-gray-800) !important;
}

.text-gray-600 {
    color: #6c757d !important;
}

.text-gray-800 {
    color: var(--color-gray-800) !important;
}

.text-muted {
    color: #6c757d !important;
}

/* Card Typography Overrides */
.cm-card .small {
    font-size: 0.925rem !important;
    /* increased from default small */
    line-height: 1.5;
}

.text-white {
    color: var(--color-white) !important;
}

/* Base resets */
body {
    font-family: var(--font-family);
    color: var(--color-gray-700);
    font-size: var(--font-size-base);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
}

/* Sections */
.section-padding {
    padding: var(--section-padding);
}

.section-padding-sm {
    padding: 70px 0;
}

.bg-teal-gradient,
.bg-primary-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
}

.bg-light-gradient {
    background: linear-gradient(135deg, var(--color-gray-50), var(--color-gray-100));
}

/* Components */
.cm-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 120, 115, 0.1);
}

.cm-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Info Cards Floating Section */
.info-cards-floating {
    margin-top: -50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 20;
}

.info-cards-floating .container {
    padding-top: 0;
    padding-bottom: 0;
}

.info-cards-floating .cm-card {
    border: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    /* Deep, soft shadow */
    border-radius: 16px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.info-cards-floating .cm-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(44, 120, 115, 0.15);
}

.info-card-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    background: rgba(44, 120, 115, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.75rem;
    color: var(--color-primary);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.info-card:hover .info-card-icon {
    background: var(--color-primary);
    color: var(--color-white);
    transform: rotate(10deg);
}

.info-card .card-title {
    color: var(--color-gray-800);
    margin-bottom: var(--spacing-xs);
}

.cm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 500;
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.cm-btn-primary {
    background-color: var(--color-primary) !important;
    color: var(--color-white) !important;
}

.cm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 120, 115, 0.2);
}

.cm-btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary) !important;
}

.cm-btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white) !important;
}

/* White Variant (for dark backgrounds) */
.cm-btn-white {
    background-color: var(--color-white) !important;
    color: var(--color-primary) !important;
    border: 2px solid var(--color-white);
}

.cm-btn-white:hover {
    background-color: transparent !important;
    color: var(--color-white) !important;
    border-color: var(--color-white);
}

/* White Outline Variant */
.cm-btn-outline-white {
    background-color: transparent !important;
    border: 2px solid var(--color-white) !important;
    color: var(--color-white) !important;
}

.cm-btn-outline-white:hover {
    background-color: var(--color-white) !important;
    color: var(--color-primary) !important;
}

/* Feature Items */
.cm-feature-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.cm-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-sm);
}

.cm-badge {
    background-color: rgba(44, 120, 115, 0.1);
    color: var(--color-primary);
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    border: 1px solid rgba(44, 120, 115, 0.2);
}

/* Suite Section Header */
.cm-suite-header {
    background: linear-gradient(to right, rgba(44, 120, 115, 0.08), transparent);
    padding: 30px 40px;
    border-left: 6px solid var(--color-primary);
    border-radius: 0 20px 20px 0;
    margin-bottom: 50px;
}

.cm-suite-header h2 {
    font-size: 2.2rem;
    color: var(--color-primary-dark);
    margin-bottom: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
}

.cm-suite-header p {
    font-size: 1.15rem;
    color: var(--color-gray-700);
    margin: 0;
    max-width: 800px;
}

/* Ecosystem Card Design */
.cm-ecosystem-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 120, 115, 0.1);
    border-top: 4px solid var(--color-primary);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.cm-ecosystem-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.cm-ecosystem-icon {
    width: 60px;
    height: 60px;
    background: rgba(44, 120, 115, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.cm-ecosystem-card:hover .cm-ecosystem-icon {
    background: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1);
}

/* Service Cards - High End Variation */
.single-service.cm-card {
    border: none;
    border-top: 4px solid var(--color-primary);
    border-bottom: 1px solid rgba(44, 120, 115, 0.08);
    /* Faint border for structure */
    border-left: 1px solid rgba(44, 120, 115, 0.08);
    border-right: 1px solid rgba(44, 120, 115, 0.08);
    background: #ffffff;
    padding: 35px 30px;
    /* Increased padding */
    position: relative;
    overflow: hidden;
}

.single-service.cm-card:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f0fdfc 100%);
    /* Subtle teal tint */
    border-top-color: var(--color-secondary);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(44, 120, 115, 0.12);
}

.single-service .cm-service-icon {
    font-size: 3.5rem;
    color: var(--color-primary);
    display: block;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.single-service:hover .cm-service-icon {
    transform: scale(1.1);
    color: var(--color-secondary);
}

.single-service .cm-service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.single-service .cm-service-title a {
    color: var(--color-gray-800);
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-service:hover .cm-service-title a {
    color: var(--color-primary);
}

/* Info Cards Design */
.info-card-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background-color: rgba(44, 120, 115, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-primary);
    margin-right: 20px;
    transition: all 0.3s ease;
}

.info-card:hover .info-card-icon {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: rotateY(180deg);
}

.info-card h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gray-800);
    margin-bottom: 8px;
}

.info-card p {
    font-size: 1rem !important;
    color: var(--color-gray-600) !important;
    line-height: 1.5;
}

/* Client Section Styles */
.clients-section {
    position: relative;
    z-index: 1;
}

.clients-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, #235e5a, transparent);
}

.client-card {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(44, 120, 115, 0.1);
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(44, 120, 115, 0.15) !important;
    border-color: rgba(44, 120, 115, 0.2);
}

.client-card img {
    height: 90px;
    /* Fixed height for consistency */
    width: 100%;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: transform 0.3s ease;
}

.client-card:hover img {
    transform: scale(1.05);
}

/* Specialties Section */
.cm-specialty-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: none;
}

.cm-specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.cm-specialty-icon {
    width: 80px;
    height: 80px;
    background: rgba(44, 120, 115, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: var(--spacing-md);
    transition: all 0.3s ease;
}

.cm-specialty-card:hover .cm-specialty-icon {
    background: var(--color-primary);
    color: var(--color-white);
    transform: rotateY(180deg);
}

.cm-specialty-title {
    color: var(--color-gray-800);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.cm-specialty-card p {
    font-size: 1rem;
    color: var(--color-gray-600);
    line-height: 1.6;
}

/* Appointment Section */
.appointment-section {
    position: relative;
    background: url('../img/call-bg.jpg') center/cover fixed no-repeat;
    padding: var(--spacing-xl) 0;
    z-index: 1;
}

.appointment-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 120, 115, 0.9);
    /* Teal Overlay */
    z-index: -1;
}

#appointment {
    scroll-margin-top: 120px;
    /* Offset for sticky header */
}

.appointment-form-wrapper {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.cm-form-control {
    height: 50px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
    padding: 0 20px;
    font-size: var(--font-size-base);
    background-color: var(--color-gray-50);
    transition: all 0.3s ease;
    line-height: 48px;
    /* Vertically center text (50px - 2px border) */
}

/* Enforce consistent placeholder color for Inputs */
.cm-form-control::placeholder {
    color: #6c757d !important;
    opacity: 1;
    /* Firefox default opacity fix */
}

/* Match Dropdown Placeholder to Input Placeholder */
.ddl-placeholder {
    color: #6c757d !important;
}

.cm-form-control:focus {
    border-color: var(--color-primary);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(44, 120, 115, 0.1);
    outline: none;
}

textarea.cm-form-control {
    height: auto;
    padding: 15px 20px;
}

/* Footer Modernization */
.cm-footer {
    background: #172830;
    color: #e0e0e0;
    padding: 40px 0 0;
    position: relative;
    overflow: hidden;
}

.cm-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
}

.cm-footer h3 {
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.cm-footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-primary);
}

.cm-footer-about p {
    color: #d1d1d1;
    line-height: 1.8;
    font-size: 0.95rem;
}

.cm-footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cm-footer-links li {
    margin-bottom: 0.75rem;
}

.cm-footer-links a {
    color: #d1d1d1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.cm-footer-links a i {
    font-size: 0.8rem;
    margin-right: 10px;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.cm-footer-links a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.cm-footer-links a:hover i {
    transform: translateX(3px);
}

.cm-social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 15px;
}

.cm-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cm-social-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
    border-color: var(--color-primary);
}

.cm-copyright {
    background: #0a1418;
    padding: 25px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.cm-copyright p {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
}

.cm-copyright a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.cm-copyright a:hover {
    text-decoration: underline;
}

/* Video Demo Section */
.cm-video-section {
    position: relative;
    padding: 100px 0;
    background: #fdfdfd;
}

.cm-video-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}

.cm-video-thumbnail {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.cm-video-wrapper:hover .cm-video-thumbnail {
    transform: scale(1.05);
}

.cm-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 28, 34, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cm-video-wrapper:hover .cm-video-overlay {
    background: rgba(15, 28, 34, 0.5);
}

.cm-play-btn {
    width: 90px;
    height: 90px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 2rem;
    position: relative;
    transition: all 0.3s ease;
    padding-left: 5px;
    /* Visual centering of play icon */
}

.cm-play-btn::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: cm-pulse 2s infinite;
}

.cm-video-wrapper:hover .cm-play-btn {
    transform: scale(1.1);
    background: var(--color-primary);
    color: var(--color-white);
}

@keyframes cm-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.cm-video-content {
    padding-left: 40px;
}

@media (max-width: 991px) {
    .cm-video-content {
        padding-left: 0;
        margin-top: 40px;
        text-align: center;
    }

    .cm-video-thumbnail {
        height: 300px;
    }
}

.cm-roi-modal {
    z-index: 1060 !important;
}

.cm-roi-modal .modal-dialog {
    max-width: 1000px;
    /* Better balance for the two columns */
}

.cm-roi-modal .modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-xl);
    background: #fdfdfd;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
}

.cm-roi-header {
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: 25px 30px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    flex-shrink: 0;
    text-align: center;
    /* Center-aligned for balance */
}

.cm-roi-body {
    padding: 30px;
    /* Reduced from 40px */
    overflow-y: auto;
}

.cm-calculator-box {
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-200);
}

.cm-calculator-box h4 {
    text-align: center;
    margin-bottom: 30px !important;
    color: var(--color-gray-800) !important;
    font-weight: 700;
}

.cm-roi-label {
    font-weight: 600;
    color: var(--color-gray-800);
    margin-bottom: 12px;
    display: block;
    text-align: center;
    /* Centered label */
}

.cm-roi-input-group {
    position: relative;
    margin-bottom: 25px;
}

.cm-roi-input {
    height: 55px !important;
    border-radius: var(--radius-md) !important;
    font-size: 1.1rem !important;
    border: 2px solid var(--color-gray-200) !important;
    padding: 0 15px !important;
    /* Balanced padding for centered text */
    text-align: center !important;
    /* Centered input text */
    transition: all 0.3s ease !important;
}

.cm-roi-input:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 4px rgba(44, 120, 115, 0.1) !important;
}

.cm-roi-icon-box {
    display: none;
    /* Removed for cleaner centered layout */
}

.cm-roi-results {
    background: var(--color-gray-50);
    padding: 25px;
    /* Reduced from 30px */
    border-radius: var(--radius-md);
    height: 100%;
}

.cm-roi-results h4 {
    color: var(--color-gray-800) !important;
    font-weight: 700;
    text-align: center;
    /* Centered results heading */
    margin-bottom: 30px !important;
}

.cm-result-card {
    background: var(--color-white);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border-top: 4px solid var(--color-primary);
    /* Changed from left to top for symmetry */
    text-align: center;
    /* Centered results */
}

.cm-result-label {
    font-size: 0.9rem;
    color: var(--color-gray-600);
    margin-bottom: 5px;
}

.cm-result-value {
    font-size: 1.8rem;
    /* Slightly larger for emphasis */
    font-weight: 700;
    color: var(--color-primary);
}

.cm-total-impact {
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: 25px;
    border-radius: var(--radius-md);
    text-align: center;
    margin-top: 20px;
}

.cm-total-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.cm-roi-footer {
    border-top: 1px solid var(--color-gray-200);
    padding: 20px 40px;
    background: var(--color-gray-50);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Premium Services Card Design (Grid Layout) */
/* Premium Services Card Design (Grid Layout) */
.single-service {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: grid;
    grid-template-columns: 80px 1fr;
    /* Icon width + remaining space */
    column-gap: 30px;
    align-items: start;
}

.single-service::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--color-primary);
    transition: all 0.4s ease;
}

.single-service:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(44, 120, 115, 0.15);
}

.single-service:hover::before {
    width: 100%;
}

.cm-service-icon {
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(44, 120, 115, 0.08);
    /* Light teal */
    border-radius: 50%;
    transition: all 0.3s ease;
    grid-row: 1 / 3;
    /* Span two rows */
}

.single-service:hover .cm-service-icon {
    background: var(--color-primary);
    color: #fff;
    transform: rotateY(180deg);
}

.cm-service-title {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 5px;
    font-size: 1.35rem;
    font-weight: 700;
    align-self: center;
    margin-top: 0;
}

.cm-service-title a {
    color: var(--color-primary-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.single-service:hover .cm-service-title a {
    color: var(--color-primary);
}

.single-service p {
    grid-column: 2;
    grid-row: 2;
    color: #777;
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Force form controls to take full width */
.cm-form-control,
textarea.cm-form-control,
select.cm-form-control {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Dropdown Placeholder Style */
.ddl-placeholder {
    color: #6c757d !important;
    /* Muted gray */
}

.ddl-placeholder option {
    color: #212529;
    /* Normal text color for options */
}

/* Enable native smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Timeline Component (for About.aspx) */
.timeline-item {
    padding: 25px;
    margin-bottom: 25px;
    border-left: 4px solid var(--color-primary);
    position: relative;
    background: #fff;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(5px);
}

.timeline-item h4 {
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-item p {
    color: #4a4a4a;
    margin-bottom: 0;
}


/* News Page Styles */
.news-img-container {
    height: 200px;
    position: relative;
    background: #000;
}

.news-img-container img,
.news-img-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cm-carousel-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: 0 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    margin: 0 12px;
    font-size: 1.2rem;
    cursor: pointer;
}

.cm-carousel-btn:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 118, 209, 0.3) !important;
    border-color: var(--color-primary);
}

.cm-carousel-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

.cm-carousel-btn:focus,
.cm-carousel-btn:focus-visible {
    color: var(--color-primary);
    /* Keep text color stable on focus unless hovered */
    background: #fff;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(26, 118, 209, 0.2) !important;
    /* Soft ring instead of harsh outline */
    border-color: var(--color-primary);
}

/* Ensure hover overrides focus aesthetics for better UX */
.cm-carousel-btn:focus:hover {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(26, 118, 209, 0.3) !important;
}


.divider-sm {
    width: 50px;
    height: 3px;
    background-color: var(--color-primary);
}


.text-gray-700 {
    color: var(--color-gray-700) !important;
}


.carousel-control-btn:focus,
.carousel-control-btn:active {
    outline: none;
    box-shadow: none !important;
}


.carousel-control-btn:focus-visible,
button.carousel-control-btn:focus {
    outline: 0 !important;
    box-shadow: none !important;
    border-color: var(--color-primary) !important;
}

/* Contact Page Styles */
.contact-map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    min-height: 450px;
}


.contact-card {
    padding: 3rem 1.5rem;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}


/* FAQ Accordion Styles */
.cm-accordion-item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.cm-accordion-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.cm-accordion-item summary {
    list-style: none;
    /* Hide default triangle */
    padding: 15px 20px;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    position: relative;
    outline: none;
}

.cm-accordion-item summary::-webkit-details-marker {
    display: none;
}

.cm-accordion-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.cm-accordion-item[open] summary::after {
    transform: rotate(45deg);
}

.cm-accordion-item[open] summary {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}


/* Documents Page Styles */
.doc-img-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-light);
    padding: 1.5rem;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}


.doc-img-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* --- EHR Redesign Components --- */

/* Sticky Side Navigation */
.cm-side-nav {
    position: sticky;
    top: 120px;
    z-index: 100;
}

.cm-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-100);
    overflow: hidden;
}

.cm-nav-item a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--color-gray-700);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.cm-nav-item a i {
    font-size: 1.25rem;
    margin-right: 15px;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.cm-nav-item a:hover,
.cm-nav-item a.active {
    background: var(--color-gray-50);
    color: var(--color-primary);
    border-left-color: var(--color-primary);
}

.cm-nav-item a:hover i,
.cm-nav-item a.active i {
    transform: scale(1.1);
}


/* Smart Ecosystem Hub Visual */
.cm-hub-wrapper {
    position: relative;
    padding: 0;
    margin: 50px auto;
    max-width: 900px;
    /* Constrain overall width */
    min-height: 400px;
    /* Reduced height */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Connecting Lines (SVG Background) */
.cm-hub-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    /* Adjusted coordinates for tighter layout: 
       Top/Bottom: 30% width (180px/420px)
       Middle: 15% width (90px/510px) 
    */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 300' fill='none' stroke='%23e2e8f0' stroke-width='2'%3E%3Cpath d='M300 150 L180 45' /%3E%3Cpath d='M300 150 L90 150' /%3E%3Cpath d='M300 150 L180 255' /%3E%3Cpath d='M300 150 L420 45' /%3E%3Cpath d='M300 150 L510 150' /%3E%3Cpath d='M300 150 L420 255' /%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    opacity: 0.6;
}

.cm-hub-center {
    width: 150px;
    /* Slightly smaller center */
    height: 150px;
    background: var(--bg-teal-gradient);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    margin: 0;
    box-shadow: 0 0 30px rgba(44, 120, 115, 0.3);
    border: 6px solid rgba(255, 255, 255, 0.4);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
}


.cm-hub-center i {
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.cm-hub-node {
    position: absolute;
    width: 100px;
    /* SLightly smaller nodes */
    height: 100px;
    background: var(--color-white);
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    /* Lighter shadow */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
    transition: all 0.3s ease;
    border: 2px solid var(--color-gray-100);
    z-index: 5;
    text-align: center;
    text-decoration: none;
    /* Ensure no underline for links */
    cursor: pointer;
}

.cm-hub-node:hover {
    text-decoration: none;
    /* Keep text clean on hover */
    transform: scale(1.15) !important;
    border-color: var(--color-secondary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 20;
}

.cm-hub-node i {
    font-size: 1.6rem;
    margin-bottom: 5px;
    color: var(--color-secondary);
    transition: color 0.3s ease;
}

.cm-hub-node:hover {
    transform: scale(1.15) !important;
    border-color: var(--color-secondary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 20;
}

.cm-hub-node:hover i {
    color: var(--color-primary);
}


/* Node Positions (Desktop) - Tightened Layout */
@media (min-width: 992px) {

    /* Clinical Suite (Left Side) */
    .node-top-left {
        top: 15%;
        left: 30%;
        /* Was 20% */
        transform: translate(-50%, -50%);
    }

    .node-left {
        top: 50%;
        left: 15%;
        /* Was 10% */
        transform: translate(-50%, -50%);
    }

    .node-bottom-left {
        top: 85%;
        left: 30%;
        /* Was 20% */
        transform: translate(-50%, -50%);
    }

    /* Operational Suite (Right Side) */
    .node-top-right {
        top: 15%;
        right: 30%;
        /* Was 20% */
        transform: translate(50%, -50%);
    }

    .node-right {
        top: 50%;
        right: 15%;
        /* Was 10% */
        transform: translate(50%, -50%);
    }

    .node-bottom-right {
        top: 85%;
        right: 30%;
        /* Was 20% */
        transform: translate(50%, -50%);
    }
}

/* Mobile Hub - Stack or Grid */
@media (max-width: 991px) {
    .cm-hub-wrapper {
        min-height: auto;
        flex-wrap: wrap;
        gap: 20px;
        margin: 30px 0;
        display: none;
        /* Hide complex visual on mobile if preferred, or adjust */
    }

    /* Assuming d-none d-lg-block is used in HTML, but if not: */
}

/* Section Scrolling */
.section-anchor {
    scroll-margin-top: 100px;
}

/* Animated Section Divider */
.cm-shape-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.cm-shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

.cm-shape-divider .shape-fill {
    fill: var(--color-gray-50);
}

/* Feature Icon Badge */
.feature-icon-badge {
    width: 60px;
    height: 60px;
    background: rgba(44, 120, 115, 0.1);
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.cm-card:hover .feature-icon-badge {
    background: var(--color-primary);
    color: var(--color-white);
}

/* High Contrast White Button */
.btn-white {
    background-color: var(--color-white) !important;
    color: var(--color-primary) !important;
    border: 2px solid var(--color-white) !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-white:hover {
    background-color: transparent !important;
    color: var(--color-white) !important;
    border-color: var(--color-white) !important;
}

/* Process Flow Steps */
.process-step {
    position: relative;
    z-index: 1;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #2c7873, #e9ecef);
    z-index: -1;
}

.process-step:last-child::after {
    display: none;
}

@media (max-width: 991px) {
    .process-step::after {
        display: none;
    }

    .process-step {
        margin-bottom: 2rem;
    }
}

/* Contact Section in Footer */
.cm-footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cm-footer-contact li {
    margin-bottom: 0.75rem;
    color: #d1d1d1;
    font-size: 0.95rem;
}

.cm-footer-contact a,
.cm-footer-contact span {
    color: #d1d1d1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.cm-footer-contact i {
    font-size: 0.9rem;
    margin-right: 12px;
    color: var(--color-primary);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.cm-footer-contact a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

/* Document Tabs */
.cm-doc-tabs .nav-link {
    color: var(--color-gray-600);
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    margin: 0 5px;
}

.cm-doc-tabs .nav-link:hover {
    color: var(--color-primary);
    background: rgba(44, 120, 115, 0.05);
}

.cm-doc-tabs .nav-link.active {
    background: var(--color-primary) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(44, 120, 115, 0.2);
}

.doc-img-container {
    height: 380px;
    overflow: hidden;
    background: #f8f9fa;
}

.doc-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.5s ease;
}

.cm-card:hover .doc-img-container img {
    transform: scale(1.05);
}

/* Document Title Link Styling */
.cm-card h5 a {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.cm-card h5 a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.cm-card h5 a:hover::after {
    width: 100%;
}

.cm-card h5 a:hover {
    opacity: 0.8;
}