:root {
    --primary-blue: #0B5394;
    --secondary-blue: #1976D2;
    --accent-teal: #00897B;
    --dark-text: #0F0E0E;
    --gray-text: #3B3B3B;
    --light-bg: #f8f9fa;
    --gradient-blue: linear-gradient(135deg, #0B5394 0%, #1976D2 100%);
    --gradient-teal: linear-gradient(135deg, #00695C 0%, #26A69A 100%);
}
a.hero-badge {
    text-decoration: none;
    cursor: pointer;
}

a.hero-badge:hover {
    text-decoration: none;
}

/* Force Button Group - Flex Layout */
.button-group {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

/* Ensure buttons stay inline */
.button-group .btn-cta-primary,
.button-group .btn-cta-secondary {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

/* Sample Collection button icon - Blue color to match text */
/* Sample Collection icon — exact #00918A via mask */
.btn-cta-secondary .sample-collect-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    flex-shrink: 0;
    background-color: #00918A;
    -webkit-mask: url('../images/sample_collect.png') no-repeat center;
            mask: url('../images/sample_collect.png') no-repeat center;
    -webkit-mask-size: contain;
            mask-size: contain;
    transition: background-color 0.3s ease;
}

/* White on hover / active to match the button text */
.btn-cta-secondary:hover .sample-collect-icon,
.btn-cta-secondary.active .sample-collect-icon {
    background-color: #fff;
}

/* On hover, make icon white */
.btn-cta-secondary:hover img {
    filter: brightness(0) invert(1) !important;
}

/* Responsive - stack on mobile only */
@media (max-width: 576px) {
    .button-group {
        flex-direction: column !important;
        align-items: flex-start !important;
        flex-wrap: wrap !important;
    }
    
    .button-group .btn-cta-primary,
    .button-group .btn-cta-secondary {
        width: 100% !important;
        justify-content: center !important;
    }
}
#test_link {
    scroll-margin-top: 100px; /* Adjust this value based on your header height */
}
.hero-section { 
    margin-top: 70px; 
    position: relative; 
    min-height: 600px; background: linear-gradient(135deg, #f0f7ff 0%, #e3f2fd 50%, #e8f5e9 100%); overflow: hidden; }
.hero-content { padding: 80px 0; }
.hero-badge { display: inline-block; background: var(--gradient-teal); color: #fff; padding: 8px 20px; border-radius: 30px; font-size: 14px; font-weight: 500; margin-bottom: 20px; animation: fadeInUp 0.6s ease; }
.hero-title { font-size:38px; font-weight: 700; color: var(--primary-blue); line-height: 1.2; margin-bottom: 15px; animation: fadeInUp 0.6s ease 0.1s both; }
.hero-title span { color: #00918A; }
.hero-subtitle { font-size: 1.4rem; color: var(--secondary-blue); font-weight: 600; margin-bottom: 15px; animation: fadeInUp 0.6s ease 0.2s both; }
.hero-description { font-size: 1rem; color: var(--gray-text); line-height: 1.8; max-width: 600px; margin-bottom: 15px; animation: fadeInUp 0.6s ease 0.3s both; }
.hero-stats { display: flex; gap: 40px; margin-bottom: 30px; animation: fadeInUp 0.6s ease 0.4s both; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-value { font-size: 30px; font-weight: 700; color: #00918A; }
.hero-stat-label { font-size: 0.85rem; color: var(--gray-text); }
.hero-image-container { position: relative; animation: fadeInRight 0.8s ease 0.3s both; }
.hero-image-wrapper { position: relative; clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%); overflow: hidden; }
.hero-image-wrapper::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(45deg, rgba(0, 137, 123, 0.2) 0%, transparent 50%); z-index: 1; }
.hero-image-wrapper img { width: 100%; height: 500px; object-fit: cover; }
.diagonal-accent { position: absolute; top: -50px; right: -30px; width: 80px; height: 600px; background: var(--accent-teal); transform: skewX(-5deg); z-index: 2; }
.diagonal-accent-blue { position: absolute; top: -50px; right: 30px; width: 15px; height: 600px; background: var(--primary-blue); transform: skewX(-5deg); z-index: 2; }
/* Default (inactive) → outline style */
.btn-cta-primary {display: inline-flex;align-items: center; gap: 10px; background: transparent; color: #00918A; padding: 14px 32px; border-radius: 30px; font-weight: 600; text-decoration: none; border: 2px solid #00918A; transition: all 0.3s ease;}
.btn-cta-primary.active {background: #00918A; color: #fff;}
.btn-cta-primary:hover {background: #F05165; color: #fff; border:2px solid #F05165;}
.btn-cta-secondary { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: #00918A; padding: 14px 32px; border-radius: 30px; font-weight: 600; text-decoration: none; border: 2px solid #00918A; transition: all 0.3s ease; }
.btn-cta-secondary:hover { background:  #F05165; color: #fff; border:2px solid #F05165;}
.btn-cta-secondary.active {background: #F05165;color: #fff;border: none;}
.specialties-nav { background: #fff; padding: 20px 0; box-shadow: 0 4px 20px rgba(0,0,0,0.08); top: 70px; z-index: 100; }
.specialty-tabs { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.specialty-tab { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 50px; background: var(--light-bg); border: 2px solid transparent; cursor: pointer; transition: all 0.3s ease; text-decoration: none; color: var(--dark-text); font-size: 14px; }
.specialty-tab:hover { border-color: #00918A; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(11, 83, 148, 0.15); color: var(--dark-text); }
.specialty-tab.active { background: #00918A; color: #fff; border-color: #00918A; }
.specialty-tab-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.specialty-tab-icon img{width:25px;height:25px}
.specialty-tab.active .specialty-tab-icon { background: rgba(255,255,255,0.2); }
.specialty-tab-icon.oncology { background: #E91E63; color: #fff; }
.specialty-tab-icon.reproductive { background: #FF9800; color: #fff; }
.specialty-tab-icon.prenatal { background: #9C27B0; color: #fff; }
.specialty-tab-icon.cytogenetics { background: #3F51B5; color: #fff; }
.specialty-tab-icon.ngs_gene { background: #00BCD4; color: #fff; }
.specialty-tab-icon.repeat_expansion { background: #F44336; color: #fff; }
.specialty-tab-icon.neuro { background: #4CAF50; color: #fff; }
.specialty-tab-icon.rare_disease{ background: #00897b; color: #fff;}
.specialty-tab-icon.newborn{ background: #36454F; color:#fff;}
.specialty-tab-icon.moleculargenetics{ background: #1b5353; color: #fff;}
.specialty-tab-icon.infectiousdisease{ background: #784444; color: #fff;}
.section-padding { padding: 50px 0; }
.section-title { font-size: 30px; font-weight: 700; color: #00918A; text-align: center; margin-bottom: 15px; }
.section-subtitle { font-size: 1rem; color: var(--gray-text); text-align: center; max-width: 900px; margin: 0 auto 20px; line-height: 1.7; }
.tests-section { background: var(--light-bg); }
.test-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.08); transition: all 0.4s ease; height: 100%; display: flex; flex-direction: column; }
.test-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,0.15); }
.test-header { background: var(--gradient-blue); color: #fff; padding: 20px 25px; position: relative; }
.test-header.oncology { background: linear-gradient(135deg, #C2185B 0%, #E91E63 100%); }
.test-header.reproductive { background: linear-gradient(135deg, #E65100 0%, #FF9800 100%); }
.test-header.prenatal { background: linear-gradient(135deg, #7B1FA2 0%, #AB47BC 100%); }
.test-header.cytogenetics { background: linear-gradient(135deg, #283593 0%, #5C6BC0 100%); }
.test-header.ngs_gene { background: linear-gradient(135deg, #00838F 0%, #26C6DA 100%); }
.test-header.repeat_expansion { background: linear-gradient(135deg, #C62828 0%, #EF5350 100%); }
.test-header.neuro { background: linear-gradient(135deg, #2E7D32 0%, #66BB6A 100%); }
.test-header.rare_disease{background:linear-gradient(135deg, #00897b 0%, #66BB6A 100%);}
.test-header.newborn{background:linear-gradient(135deg,#36454F 0%, #9faf9f 100%);}
.test-header.moleculargenetics{background:linear-gradient(135deg, #1b5353 0%,#6b1d38 100%);}
.test-header.infectiousdisease{background:linear-gradient(135deg, #784444 0%,#FF9800 100%); }
.test-id { font-size: 0.85rem; font-weight: 500; opacity: 0.9; }
.test-name { font-size: 1.1rem; font-weight: 600; margin: 0; line-height: 1.3; }
.test-price-badge { position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.2); padding: 6px 14px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; }
.test-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.test-description { font-size: 0.9rem; color: var(--gray-text); line-height: 1.7; margin-bottom: 20px; flex-grow: 1; }
.test-info { border-top: 1px solid #e9ecef; padding-top: 15px; }
.test-info-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; font-size: 0.85rem; }
.test-info-label { color: var(--gray-text); font-weight: 500; }
.test-info-value { color: var(--dark-text); text-align: right; max-width: 60%; }
.feature-card { background: linear-gradient(145deg, #fff 0%, #f8f9fa 100%); border-radius: 20px; padding: 25px 20px; height: 100%; border: 1px solid #e9ecef; transition: all 0.4s ease; }
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(11, 83, 148, 0.12); border-color: #00918A; }
.feature-icon { width: 70px; height: 70px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 20px; }
.feature-icon.blue { background: rgba(11, 83, 148, 0.1); color: var(--primary-blue); }
.feature-icon.green { background: rgba(76, 175, 80, 0.1); color: #4CAF50; }
.feature-icon.orange { background: rgba(255, 152, 0, 0.1); color: #FF9800; }
.feature-icon.purple { background: rgba(156, 39, 176, 0.1); color: #9C27B0; }
.feature-icon.red { background: rgba(198, 40, 40, 0.1); color: #C62828; }
.feature-icon.teal { background: rgba(0, 137, 123, 0.1); color: #00897B; }
.feature-title { font-size: 1.15rem; font-weight: 600; color: var(--dark-text); margin-bottom: 12px; }
.feature-text { font-size: 0.9rem; color: var(--gray-text); line-height: 1.7; }
.sample-card { background: linear-gradient(145deg, #fff 0%, #f8f9fa 100%); border-radius: 20px; padding: 30px; height: 100%; border: 1px solid #e9ecef; transition: all 0.3s ease; }
.sample-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.sample-icon { width: 60px; height: 60px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; background: #F05165; color: #fff; }
.sample-title { font-size: 1.1rem; font-weight: 600; color: var(--dark-text); margin-bottom: 15px; }
.sample-text { font-size: 0.85rem; color: var(--gray-text); line-height: 1.7; }
.cta-section { background: var(--gradient-blue); padding: 20px 0; }
.cta-content { text-align: center; max-width: 800px; margin: 0 auto; }
.cta-title { color: #fff; font-size: 2rem; font-weight: 700; margin-bottom: 20px; }
.cta-text { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-bottom: 0px; line-height: 1.7; }
.cta-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.btn-cta-white { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--primary-blue); padding: 14px 32px; border-radius: 30px; font-weight: 600; text-decoration: none; transition: all 0.3s ease; }
.btn-cta-white:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); color: var(--primary-blue); }
.btn-cta-outline { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: #fff; padding: 14px 32px; border-radius: 30px; font-weight: 600; text-decoration: none; border: 2px solid #fff; transition: all 0.3s ease; }
.btn-cta-outline:hover { background: #fff; color: var(--primary-blue); }
.footer-section { background: #1a1a2e; color: #fff; padding-top: 60px; }
.footer-logo { max-width: 180px; margin-bottom: 20px; }
.footer-description { color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.7; }
.footer-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 25px; color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease; }
.footer-links a:hover { color: #81D4FA; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 15px; color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-contact-item i { color: var(--accent-teal); margin-top: 3px; }
.social-links { display: flex; gap: 15px; margin-top: 25px; }
.social-links a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #fff; transition: all 0.3s ease; }
.social-links a:hover { background: var(--primary-blue); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 25px 0; margin-top: 50px; }
.footer-bottom-text { color: rgba(255,255,255,0.5); font-size: 0.85rem; text-decoration: none; }
.footer-bottom-text:hover { color: #81D4FA; }
.section-oncology { border-top: 4px solid #E91E63; }
.section-reproductive { border-top: 4px solid #FF9800; }
.section-prenatal { border-top: 4px solid #9C27B0; }
.section-cytogenetics { border-top: 4px solid #3F51B5; }
.section-ngs_gene{ border-top: 4px solid #00BCD4; }
.section-repeat_expansion { border-top: 4px solid #F44336; }
.section-neuro { border-top: 4px solid #4CAF50; }
.section-rare_disease{border-top: 4px solid #00897b;}
.section-newborn{border-top:4px solid #36454F;}
.section-moleculargenetics{border-top:4px solid #1b5353;}
.section-infectiousdisease{border-top:4px solid #784444;}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@media (max-width: 991px) {
    .hero-title { font-size: 2rem; }
    .hero-image-wrapper { clip-path: none; border-radius: 20px; margin-top: 40px; }
    .diagonal-accent, .diagonal-accent-blue { display: none; }
    .specialty-tabs { gap: 8px; }
    .specialty-tab { padding: 10px 15px; font-size: 12px; }
    .section-title { font-size: 1.6rem; }
    .hero-stats { gap: 20px; }
    .hero-stat-value { font-size: 1.8rem; }
}
@media (max-width: 767px) {
    .hero-content { padding: 50px 0; }
    .hero-title { font-size: 1.7rem; }
    .specialty-tab span { display: none; }
    .cta-title { font-size: 1.6rem; }
    .footer-bottom .col-md-4 { text-align: center; margin-bottom: 10px; }
    .btn-cta-secondary { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: var(--primary-blue); padding: 14px 20px; border-radius: 30px; font-weight: 600; text-decoration: none; border: 2px solid var(--primary-blue); transition: all 0.3s ease; }
}