﻿/* ============================================
   DIAGNOSTIC LAB - WHITE LABEL THEME
   Clean Medical UI | Dynamic Theme Support
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary-color: #0fa64c;
    --secondary-color: #0fa64c;
    --primary-rgb: 15, 166, 76;
    --primary-light: #75ffb2;
    --primary-lighter: #c2ffff;
    --gradient-start: #0fa64c;
    --gradient-end: #56ed93;
    --text-dark: #7d0004;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --bg-section: #f0f4f8;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* --- Global theme transition for smooth color changes --- */
body,
.top-bar,
.btn-primary,
.btn-outline-primary,
.brand-text,
.navbar .nav-link,
.navbar .nav-link::after,
.highlight-card .icon,
.service-card .service-price,
.why-card .icon-circle,
.cta-section,
.stat-card .stat-number,
.mission-vision-card,
.mission-vision-card h4,
.package-card .card-header-custom,
.package-card.popular,
.package-card .popular-badge,
.footer-heading::after,
.footer-social a:hover,
.footer-contact li i,
.contact-info-item .icon-box,
.page-header .breadcrumb a,
.modal-header,
.team-card .team-img-placeholder,
.hero-section h1 span,
.btn-theme-toggle,
.form-control:focus {
    transition: all 0.4s ease;
}

/* --- Reset & Base --- */
html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background: var(--white);
    margin: 0;
    padding-top: 100px;
}

@media (max-width: 768px) {
    body {
        padding-top: 90px;
    }

    .hero-section {
        padding: 60px 0 50px;
        text-align: center;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p {
        margin: 0 auto;
    }
}

/* --- Top Bar --- */
.top-bar {
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
}

.top-bar span {
    color: rgba(255, 255, 255, 0.9);
}

.top-social-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.top-social-link:hover {
    color: var(--white);
}

/* --- Navbar --- */
.site-header-fixed {
    position: fixed;
    top: 36px;
    left: 0;
    right: 0;
    z-index: 1030;
}

.site-header-fixed .navbar {
    background: var(--white);
}

.brand-logo {
    height: 62px;
    width: auto;
}

.brand-text {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.navbar .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary-color) !important;
}

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

.navbar .nav-link:hover::after {
    width: 60%;
}

/* --- Theme Toggle Button --- */
.btn-theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border: 2px solid rgba(var(--primary-rgb), 0.2);
    font-size: 1.15rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-theme-toggle:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: rotate(15deg) scale(1.1);
}

.btn-theme-toggle:active {
    transform: rotate(30deg) scale(0.95);
}

/* --- Buttons --- */
.btn-primary {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.35);
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--primary-color);
}

/* --- Section Utilities --- */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.dark-color{
    color: var(--text-dark)!important;
}

.bg-light-section {
    background: var(--bg-section);
}

/* --- Hero Section --- */
.hero-section {
    background: rgba(var(--primary-rgb), 0.05);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.05);
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.03);
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #0fa64c;
    line-height: 1.2;
}

.hero-section h1 span {
    color: #0fa64c;
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 500px;
}

/* --- Highlight Cards --- */
.highlight-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.highlight-card .icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.highlight-card h5 {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
}

.highlight-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* --- Service Cards --- */
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.service-card .service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card h5 {
    font-weight: 600;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-grow: 1;
}

.service-card .service-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* --- Package Cards --- */
.package-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.package-card.popular {
    border-color: var(--primary-color);
    position: relative;
}

.package-card .popular-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--primary-color);
    color: var,(--white);
    padding: 5px 40px;
    font-size: 0.75rem;
    font-weight: 600;
    transform: rotate(45deg);
    text-transform: uppercase;
}

.package-card .card-header-custom {
    background: var(--primary-color);
    color: var(--white);
    padding: 30px 25px;
    text-align: center;
}

.package-card .card-header-custom h4 {
    font-weight: 700;
    margin-bottom: 5px;
}

.package-card .card-header-custom .price {
    font-size: 2.5rem;
    font-weight: 800;
}

.package-card .card-header-custom .test-count {
    font-size: 0.9rem;
    opacity: 0.9;
}

.package-card .card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.package-card .test-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    flex-grow: 1;
}

.package-card .test-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.package-card .test-list li::before {
    content: '✓';
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 10px;
}

/* --- Package Card Link --- */
.package-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.package-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.package-card-link:hover .package-card {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.package-card .package-card {
    cursor: pointer;
}

/* --- Why Choose Us --- */
.why-card {
    text-align: center;
    padding: 30px 20px;
}

.why-card .icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.why-card:hover .icon-circle {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.35);
}

.why-card h5 {
    font-weight: 600;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- CTA Section --- */
.cta-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 70px 0;
    text-align: center;
}

.cta-section h2 {
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-section .btn {
    padding: 12px 40px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* --- About Page --- */
.about-hero {
    background: rgba(var(--primary-rgb), 0.05);
    padding: 60px 0;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-card p {
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}

.mission-vision-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    height: 100%;
    border-left: 4px solid var(--primary-color);
}

.mission-vision-card h4 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* --- Team Section --- */
.team-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.team-card .team-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--bg-section);
}

.team-card .team-img-placeholder {
    width: 100%;
    height: 250px;
    background: rgba(var(--primary-rgb), 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-color);
}

.team-card .card-body {
    padding: 20px;
}

.team-card h5 {
    font-weight: 600;
    margin-bottom: 5px;
}

.team-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Contact Page --- */
.contact-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info-item .icon-box {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-info-item h6 {
    font-weight: 600;
    margin-bottom: 3px;
}

.contact-info-item p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: 0;
}

/* --- Form Styles --- */
.form-control {
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 5px;
}

/* --- Page Header --- */
.page-header {
    background: rgba(var(--primary-rgb), 0.05);
    padding: 50px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.page-header .breadcrumb {
    justify-content: center;
    background: none;
    padding: 0;
    margin-top: 10px;
}

.page-header .breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

/* --- Footer --- */
.site-footer {
    background: #7d0004;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-heading {
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

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

.footer-contact li {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.footer-contact li i {
    color: var(--primary-color);
    margin-top: 3px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-color);
   
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

    .footer-social a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-3px);
    }

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* --- Alert Styles --- */
.alert-success-custom {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    border-radius: var(--radius);
    padding: 20px;
}

/* --- Modal --- */
.modal-content {
    border-radius: var(--radius);
    border: none;
    box-shadow: var(--shadow-hover);
}

.modal-header {
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius) var(--radius) 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes themeApplyPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.theme-apply-pulse {
    animation: themeApplyPulse 0.4s ease;
}

/* ============================================
   THEME SWITCHER - OFFCANVAS UI
   ============================================ */

.theme-offcanvas {
    width: 360px !important;
    border-left: 3px solid var(--primary-color);
}

.theme-offcanvas .offcanvas-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 20px 24px;
}

.theme-offcanvas .offcanvas-header .btn-close {
    filter: brightness(0) invert(1);
}

.theme-offcanvas .offcanvas-body {
    padding: 24px;
}

/* Theme Swatch Grid */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.theme-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border: 2px solid #e9ecef;
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.theme-swatch:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.theme-swatch.active {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.05);
}

.theme-swatch .swatch-color {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.theme-swatch:hover .swatch-color {
    transform: scale(1.15);
}

.theme-swatch .swatch-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
}

.theme-swatch .swatch-check {
    display: none;
    position: absolute;
    top: 6px;
    right: 6px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: bold;
}

.theme-swatch.active .swatch-check {
    display: block;
}

/* Custom Color Section */
.custom-color-section .color-picker-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #dee2e6;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.3s ease;
}

.custom-color-section .color-picker-wrapper:hover {
    border-color: var(--primary-color);
}

.custom-color-section .color-picker-wrapper input[type="color"] {
    width: 60px;
    height: 60px;
    margin: -8px;
    padding: 0;
    border: none;
    cursor: pointer;
}

.color-preview-bar .preview-gradient {
    height: 24px;
    border-radius: 12px;
    background: var(--primary-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.4s ease;
}

/* Theme Preview Card */
.theme-preview-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.theme-preview-card .preview-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 14px 16px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.4s ease;
}

.theme-preview-card .preview-body {
    padding: 16px;
    background: var(--white);
}

.preview-badge-filled {
    background: var(--primary-color) !important;
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
}

.preview-badge-outline {
    background: transparent !important;
    color: var(--primary-color) !important;
    border: 1.5px solid var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
}

.preview-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.preview-link {
    color: var(--primary-color);
    font-weight: 600;
}

.preview-icon-row {
    display: flex;
    gap: 12px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .theme-offcanvas {
        width: 300px !important;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 40px 0;
    }

    .top-bar {
        font-size: 0.75rem;
    }

    .cta-section h2 {
        font-size: 1.6rem;
    }

    .package-card .card-header-custom .price {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .theme-offcanvas {
        width: 100% !important;
    }

    .theme-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

/* ============================================
   BOOK NOW MODAL - Professional Split Panel
   ============================================ */

#bookNowModal .modal-lg {
    max-width: 820px;
}

#bookNowModal .book-modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
}

#bookNowModal .book-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    opacity: 0.7;
    filter: none;
    background-color: rgba(0,0,0,0.15);
    border-radius: 50%;
    padding: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

#bookNowModal .book-modal-close:hover {
    opacity: 1;
    background-color: rgba(0,0,0,0.25);
}

/* --- Left Info Panel --- */
#bookNowModal .book-modal-info {
    background: var(--primary-color);
    color: var(--white);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
}

#bookNowModal .book-modal-info::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

#bookNowModal .book-modal-info::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

#bookNowModal .book-modal-info-inner {
    position: relative;
    z-index: 1;
}

#bookNowModal .book-modal-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

#bookNowModal .book-modal-brand i {
    font-size: 1.8rem;
    opacity: 0.9;
}

#bookNowModal .book-modal-brand h3 {
    font-weight: 800;
    font-size: 1.3rem;
    margin: 0;
}

#bookNowModal .book-modal-tagline {
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.5;
    margin-bottom: 18px;
}

/* --- Illustration Area --- */
#bookNowModal .book-modal-illustration {
    position: relative;
    height: 140px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#bookNowModal .illustration-icon-main {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
    animation: illustrationPulse 3s ease-in-out infinite;
}

#bookNowModal .illustration-icon-float {
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
    z-index: 1;
}

#bookNowModal .illustration-float-1 {
    top: 8px;
    left: 20px;
    animation: floatBounce 3.5s ease-in-out infinite;
}

#bookNowModal .illustration-float-2 {
    bottom: 10px;
    right: 18px;
    animation: floatBounce 4s ease-in-out infinite 0.5s;
}

#bookNowModal .illustration-float-3 {
    top: 12px;
    right: 30px;
    animation: floatBounce 3s ease-in-out infinite 1s;
}

@keyframes illustrationPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
    50% { transform: scale(1.05); box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
}

@keyframes floatBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* --- Quick Stats --- */
#bookNowModal .book-modal-stats {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

#bookNowModal .book-modal-stat {
    flex: 1;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

#bookNowModal .book-modal-stat strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}

#bookNowModal .book-modal-stat span {
    font-size: 0.7rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Features List --- */
#bookNowModal .book-modal-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

#bookNowModal .book-modal-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 500;
}

#bookNowModal .book-modal-feature i {
    font-size: 0.95rem;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#bookNowModal .book-modal-contact {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.82rem;
    opacity: 0.9;
}

#bookNowModal .book-modal-contact i {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* --- Right Form Panel --- */
#bookNowModal .book-modal-form-panel {
    padding: 30px 28px 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

#bookNowModal .book-modal-form-header {
    margin-bottom: 20px;
}

#bookNowModal .book-modal-form-header h5 {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}

#bookNowModal .book-modal-form-header h5 i {
    color: var(--primary-color);
}

#bookNowModal .book-modal-form-header p {
    font-size: 0.88rem;
}

#bookNowModal .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

#bookNowModal .input-group-text {
    background: rgba(var(--primary-rgb), 0.08);
    border-color: #dee2e6;
    color: var(--primary-color);
    font-size: 0.9rem;
}

#bookNowModal .form-control,
#bookNowModal .form-select {
    border-radius: 8px;
    padding: 10px 14px;
    border: 1px solid #dee2e6;
    font-size: 0.9rem;
    transition: var(--transition);
}

#bookNowModal .input-group .form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

#bookNowModal .input-group .input-group-text {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

#bookNowModal .form-control:focus,
#bookNowModal .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.12);
}

#bookNowModal .btn-primary {
    font-size: 1rem;
    padding: 12px;
    letter-spacing: 0.3px;
}

#bookNowModal .alert-success {
    border-radius: 12px;
    border: none;
    background: rgba(var(--secondary-rgb), 0.12);
}

#bookNowModal .book-modal-form-footer {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

#bookNowModal .book-modal-form-footer i {
    color: var(--secondary-color);
}

/* --- Modal Header override (remove old header style) --- */
#bookNowModal .modal-header {
    display: none;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    #bookNowModal .modal-lg {
        max-width: 500px;
    }

    #bookNowModal .book-modal-form-panel {
        padding: 24px 20px 16px;
    }

    #bookNowModal .book-modal-close {
        filter: none;
        background-color: rgba(0,0,0,0.08);
    }
}

@media (max-width: 576px) {
    #bookNowModal .modal-dialog {
        margin: 10px;
    }

    #bookNowModal .book-modal-form-panel {
        padding: 20px 16px 14px;
    }
}
/* ============================================
   BLOG - Listing cards, detail article, sidebar
   Uses existing theme variables so the theme
   switcher continues to work everywhere.
   ============================================ */

/* --- Blog card (listing & related) --- */
.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.blog-card-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    overflow: hidden;
}

.blog-card-media::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -60px;
    top: -60px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.blog-card-media i {
    font-size: 3.2rem;
    z-index: 1;
}

.blog-category-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 30px;
    z-index: 2;
    letter-spacing: 0.3px;
}

.blog-card-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.6rem;
}

.blog-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card-excerpt {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.blog-readmore {
    margin-top: auto;
    align-self: flex-start;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.blog-readmore i {
    transition: transform 0.3s ease;
}

.blog-readmore:hover {
    color: var(--secondary-color);
}

.blog-readmore:hover i {
    transform: translateX(4px);
}

/* --- Blog detail article --- */
.blog-article {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

@media (min-width: 768px) {
    .blog-article {
        padding: 2.5rem;
    }
}

.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.blog-category-pill {
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 5px 14px;
    border-radius: 30px;
    letter-spacing: 0.3px;
}

.blog-detail-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 260px;
    border-radius: var(--radius);
    background: var(--primary-color);
    color: #fff;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.blog-detail-hero::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -100px;
    bottom: -120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.blog-detail-hero i {
    font-size: 5rem;
    z-index: 1;
}

.blog-content {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.9;
}

.blog-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 1.8rem 0 0.8rem;
    color: var(--text-dark);
}

.blog-content p {
    margin-bottom: 1.1rem;
    color: #444;
}

.blog-content ul {
    margin: 0 0 1.2rem;
    padding-left: 0;
    list-style: none;
}

.blog-content ul li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.6rem;
    color: #444;
}

.blog-content ul li::before {
    content: "\F26E";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.blog-content blockquote {
    border-left: 4px solid var(--primary-color);
    background: var(--bg-section);
    margin: 1.5rem 0;
    padding: 1rem 1.4rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-dark);
}

.blog-disclaimer {
    margin-top: 2rem;
    background: rgba(var(--primary-rgb), 0.06);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    color: var(--text-muted);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    font-size: 0.88rem;
    line-height: 1.7;
}

.blog-disclaimer i {
    color: var(--primary-color);
}

.blog-article-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-tag {
    background: var(--bg-section);
    color: var(--text-muted);
    font-size: 0.78rem;
    padding: 5px 12px;
    border-radius: 30px;
}

.blog-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
}

.blog-share a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-section);
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.blog-share a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* --- Blog sidebar --- */
.blog-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.7rem;
    border-bottom: 2px solid var(--bg-section);
    position: relative;
}

.sidebar-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 45px;
    height: 2px;
    background: var(--primary-color);
}

.recent-post {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0;
    text-decoration: none;
    border-bottom: 1px solid #f1f1f1;
}

.recent-post:last-child {
    border-bottom: none;
}

.recent-post-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.2rem;
}

.recent-post-info {
    display: flex;
    flex-direction: column;
}

.recent-post-title {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: var(--transition);
}

.recent-post:hover .recent-post-title {
    color: var(--primary-color);
}

.recent-post-date {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 3px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid #f1f1f1;
    transition: var(--transition);
}

.category-list li:last-child a {
    border-bottom: none;
}

.category-list li a:hover {
    color: var(--primary-color);
    padding-left: 6px;
}

.category-list li a i {
    font-size: 0.8rem;
    color: var(--primary-color);
}

.sidebar-cta {
    text-align: center;
    background: var(--primary-color);
    color: #fff;
}

.sidebar-cta i {
    font-size: 2.4rem;
    margin-bottom: 0.6rem;
}

.sidebar-cta h5 {
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.sidebar-cta p {
    font-size: 0.88rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.sidebar-cta .btn-light {
    color: var(--primary-color);
    font-weight: 600;
}


/* ============================================
   LEGAL PAGES (Privacy Policy / Terms)
   ============================================ */
.footer-legal-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: var(--transition);
}
.footer-legal-link:hover { color: #fff; }

.legal-content { color: #444; line-height: 1.85; }
.legal-content > p:first-child { margin-bottom: 1.5rem; }
.legal-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 2rem 0 0.75rem;
    padding-top: 0.5rem;
}
.legal-content h2:first-of-type { margin-top: 0.5rem; }
.legal-content h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 1.4rem 0 0.5rem;
}
.legal-content p { margin-bottom: 1rem; }
.legal-content ul { margin: 0 0 1.1rem; padding-left: 0; list-style: none; }
.legal-content ul li {
    position: relative;
    padding-left: 1.7rem;
    margin-bottom: 0.5rem;
}
.legal-content ul li::before {
    content: "\F287";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--primary-color);
    font-size: 0.85rem;
}
.legal-content a { color: var(--primary-color); }
.legal-updated {
    display: inline-block;
    background: var(--bg-section);
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.legal-placeholder { color: #b8860b; font-weight: 600; }
.legal-disclaimer {
    border-left: 4px solid var(--primary-color);
    background: rgba(var(--primary-rgb), 0.06);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.1rem 1.3rem;
    margin: 1.5rem 0;
}
.legal-disclaimer strong { color: var(--text-dark); }
.legal-toc {
    background: var(--bg-section);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    margin-bottom: 2rem;
}
.legal-toc h6 { font-weight: 700; margin-bottom: 0.6rem; }
.legal-toc ol { margin: 0; padding-left: 1.1rem; column-count: 2; }
.legal-toc a { color: var(--primary-color); text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
@media (max-width: 576px) { .legal-toc ol { column-count: 1; } }


/* Bio-Path brand accent (green) */
:root { --brand-accent: #19974f; }
.brand-slogan { color: #19974f; font-style: italic; font-weight: 600; font-size: 0.9rem; }
.whatsapp-float { background: #19974f; }

/* ============================================
   ABOUT — department badges + leadership card
   ============================================ */
.dept-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem; }
.dept-badge {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-color);
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 30px;
}

.leader-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}
@media (min-width: 768px) { .leader-card { padding: 2.5rem; } }
.leader-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    color: #fff;
    background: var(--primary-color);
}
.leader-role { color: var(--primary-color); font-weight: 700; }
.leader-mv {
    background: var(--bg-section);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    height: 100%;
}
.leader-mv h6 { font-weight: 700; color: var(--text-dark); margin-bottom: 0.4rem; }
.leader-mv h6 i { color: var(--primary-color); }
.leader-mv p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0; line-height: 1.7; }

.leader-expertise { list-style: none; padding-left: 0; margin-bottom: 1rem; }
.leader-expertise li { position: relative; padding-left: 1.5rem; margin-bottom: 0.45rem; color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }
.leader-expertise li::before { content: "\F270"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 1px; color: var(--primary-color); font-size: 0.8rem; }
.leader-expertise li strong { color: var(--text-dark); }

/* ============================================================
   CATALOG · DETAIL · CART  (Tests & Packages)
   Gradient theme extension — added by build
   ============================================================ */

:root {
    --brand-gradient: var(--primary-color);
    --brand-gradient-soft: rgba(var(--primary-rgb), 0.08);
}

/* ---- Gradient page header (reused by catalog/detail/cart) ---- */
.gradient-header {
    background: var(--brand-gradient);
    color: #fff;
    padding: 56px 0 64px;
    position: relative;
    overflow: hidden;
}
.gradient-header::after {
    content: "";
    position: absolute;
    right: -80px; top: -80px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 65%);
    pointer-events: none;
}
.gradient-header .eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0.9;
    margin-bottom: 8px;
}
.gradient-header h1 {
    font-weight: 800;
    font-size: 2.6rem;
    margin-bottom: 8px;
}
.gradient-header p { opacity: 0.92; max-width: 620px; margin-bottom: 0; }
.gradient-header .breadcrumb { margin: 14px 0 0; background: none; padding: 0; }
.gradient-header .breadcrumb a { color: #fff; text-decoration: none; opacity: 0.9; }
.gradient-header .breadcrumb-item.active { color: rgba(255,255,255,0.85); }
.gradient-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.6); }

/* ---- Search + location toolbar ---- */
.catalog-toolbar {
    margin-top: -34px;
    position: relative;
    z-index: 5;
}
.catalog-toolbar .toolbar-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    padding: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: stretch;
}
.catalog-toolbar .field {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f6f7fb;
    border: 1.5px solid #eceef4;
    border-radius: 12px;
    padding: 4px 14px;
}
.catalog-toolbar .field.grow { flex: 1 1 340px; }
.catalog-toolbar .field i { color: var(--primary-color); font-size: 1.05rem; }
.catalog-toolbar .field input,
.catalog-toolbar .field select {
    border: 0;
    background: transparent;
    outline: none;
    width: 100%;
    padding: 9px 0;
    font-size: 0.95rem;
    color: var(--text-dark);
}
.catalog-toolbar .field select { cursor: pointer; }
.catalog-toolbar .field:focus-within { border-color: var(--primary-color); }

/* ---- Category tabs ---- */
.cat-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 26px 0 4px;
}
.cat-tab {
    border: 1.5px solid #e4e7ef;
    background: #fff;
    color: var(--text-muted);
    border-radius: 999px;
    padding: 7px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.cat-tab:hover { border-color: var(--primary-light); color: var(--primary-color); }
.cat-tab.active {
    background: var(--brand-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.28);
}

.result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 16px;
    color: var(--text-muted);
    font-size: 0.92rem;
}
.result-meta .sort-select {
    border: 1.5px solid #e4e7ef;
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 0.88rem;
    color: var(--text-dark);
    background: #fff;
}

/* ---- Catalog cards ---- */
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.cat-card {
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.cat-card::before {
    content: "";
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--brand-gradient);
    opacity: 0;
    transition: var(--transition);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: transparent; }
.cat-card:hover::before { opacity: 1; }
.cat-card .card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.cat-card .pill {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.10);
    color: var(--primary-color);
    white-space: nowrap;
}
.cat-card .pill.pkg { background: var(--brand-gradient); color: #fff; }
.cat-card .pop-flag {
    font-size: 0.68rem; font-weight: 700; color: #b8860b;
    background: #fff6dd; padding: 4px 10px; border-radius: 999px;
}
.cat-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
    color: var(--text-dark);
}
.cat-card h3 a { color: inherit; text-decoration: none; }
.cat-card h3 a:hover { color: var(--primary-color); }
.cat-card .card-desc { color: var(--text-muted); font-size: 0.88rem; line-height: 1.55; margin-bottom: 14px; flex-grow: 1; }
.cat-card .card-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 16px; }
.cat-card .card-facts span i { color: var(--primary-color); margin-right: 4px; }
.cat-card .card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cat-card .price-wrap { display: flex; align-items: baseline; gap: 8px; }
.cat-card .price { font-size: 1.35rem; font-weight: 800; color: var(--text-dark); }
.cat-card .mrp { font-size: 0.85rem; color: #adb5bd; text-decoration: line-through; }

.btn-add {
    border: 0;
    border-radius: 10px;
    padding: 9px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background: var(--brand-gradient);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.btn-add:hover { filter: brightness(1.05); box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.32); transform: translateY(-1px); }
.btn-add.added { background: #eafaf0; color: #1a8a4d; box-shadow: none; }

/* ---- Empty state ---- */
.catalog-empty { text-align: center; padding: 70px 20px; color: var(--text-muted); }
.catalog-empty i { font-size: 3rem; color: var(--primary-lighter); }
.catalog-empty h4 { color: var(--text-dark); margin-top: 12px; }

/* ---- Detail page ---- */
.detail-code-bar {
    background: #f5f6fa; border-radius: 12px; padding: 14px 20px;
    font-weight: 700; letter-spacing: 0.5px; color: var(--text-muted);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.detail-title { font-size: 1.9rem; font-weight: 800; color: var(--primary-color); margin: 22px 0 14px; }
.detail-body p { color: var(--text-muted); line-height: 1.75; }
.detail-section-head {
    background: #f5f6fa; border-radius: 999px; padding: 12px 22px;
    font-weight: 700; color: var(--text-dark); margin: 28px 0 16px; text-align: center;
}
.detail-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.detail-fact {
    background: #fff; border: 1px solid #eef0f5; border-radius: 14px; padding: 16px;
}
.detail-fact i { color: var(--primary-color); font-size: 1.2rem; }
.detail-fact .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-top: 8px; }
.detail-fact .value { font-weight: 700; color: var(--text-dark); }

.buy-box {
    background: var(--brand-gradient-soft);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 18px;
    padding: 26px;
    position: sticky;
    top: 96px;
}
.buy-box h4 { font-weight: 800; color: var(--text-dark); font-size: 1.15rem; }
.buy-box .included { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.buy-box .buy-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.buy-box .buy-price .price { font-size: 2rem; font-weight: 800; color: var(--primary-color); }
.buy-box .buy-price .mrp { text-decoration: line-through; color: #adb5bd; }
.buy-box .buy-price .save { font-size: 0.78rem; font-weight: 700; color: #1a8a4d; background: #eafaf0; padding: 3px 9px; border-radius: 999px; }

.included-list { list-style: none; padding: 0; margin: 0; column-count: 2; column-gap: 26px; }
.included-list li { padding: 7px 0 7px 26px; position: relative; color: var(--text-muted); font-size: 0.9rem; break-inside: avoid; }
.included-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--primary-color); }
@media (max-width: 575px) { .included-list { column-count: 1; } }

/* ---- Cart badge in navbar ---- */
.cart-link { position: relative; display: inline-flex; align-items: center; }
.cart-badge {
    position: absolute; top: -8px; right: -10px;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: var(--brand-gradient); color: #fff;
    font-size: 0.68rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.4);
}
.cart-badge.is-empty { display: none; }

/* ---- Cart page ---- */
.cart-item {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border: 1px solid #eef0f5; border-radius: 14px;
    padding: 16px 18px; margin-bottom: 14px;
}
.cart-item .ci-icon {
    width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
    background: var(--brand-gradient-soft); color: var(--primary-color);
    display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.cart-item .ci-main { flex: 1 1 auto; min-width: 0; }
.cart-item .ci-main h5 { font-size: 1rem; font-weight: 700; margin: 0; color: var(--text-dark); }
.cart-item .ci-main small { color: var(--text-muted); }
.cart-item .ci-price { font-weight: 800; color: var(--text-dark); white-space: nowrap; }
.cart-item .ci-remove {
    border: 0; background: #fbeaea; color: #c0392b; width: 36px; height: 36px;
    border-radius: 10px; cursor: pointer; transition: var(--transition); flex-shrink: 0;
}
.cart-item .ci-remove:hover { background: #c0392b; color: #fff; }

.cart-summary {
    background: #fff; border: 1px solid #eef0f5; border-radius: 16px; padding: 24px;
    position: sticky; top: 96px;
}
.cart-summary h4 { font-weight: 800; font-size: 1.1rem; margin-bottom: 18px; }
.cart-summary .line { display: flex; justify-content: space-between; padding: 8px 0; color: var(--text-muted); font-size: 0.92rem; }
.cart-summary .line.total { border-top: 1px dashed #dfe3ec; margin-top: 8px; padding-top: 16px; font-size: 1.15rem; font-weight: 800; color: var(--text-dark); }
.cart-summary .line.total .amt { color: var(--primary-color); }
.cart-summary .save-note { color: #1a8a4d; font-size: 0.85rem; font-weight: 600; }
.btn-checkout {
    width: 100%; border: 0; border-radius: 12px; padding: 14px;
    font-weight: 700; color: #fff; background: var(--brand-gradient);
    cursor: pointer; transition: var(--transition); margin-top: 16px;
}
.btn-checkout:hover { filter: brightness(1.05); box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.35); }
.btn-checkout:disabled { opacity: 0.5; cursor: not-allowed; }

.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty i { font-size: 3.4rem; color: var(--primary-lighter); }

/* ---- Checkout step ---- */
.checkout-form .form-label { font-weight: 600; font-size: 0.88rem; }
.order-success { text-align: center; padding: 50px 20px; }
.order-success .tick {
    width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 20px;
    background: var(--brand-gradient); color: #fff; font-size: 2.4rem;
    display: flex; align-items: center; justify-content: center;
}

/* ---- Toast ---- */
.biocart-toast {
    position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px);
    background: #1f2937; color: #fff; padding: 12px 22px; border-radius: 12px;
    font-weight: 600; font-size: 0.9rem; box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    opacity: 0; pointer-events: none; transition: all 0.3s ease; z-index: 3000;
}
.biocart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 767px) {
    .gradient-header h1 { font-size: 2rem; }
    .catalog-grid { grid-template-columns: 1fr; }
    .buy-box, .cart-summary { position: static; }
}

/* ============================================================
   NEW SITE HEADER  (top search header + bottom nav + mini cart)
   Overrides the old top-bar layout.
   ============================================================ */

/* Header is fixed; reserve space for its two rows */
.site-header-fixed { top: 0 !important; }
body { padding-top: 124px; }
@media (max-width: 991.98px) { body { padding-top: 150px; } }

/* Sticky side panels sit below the taller header */
.buy-box, .cart-summary { top: 140px; }

/* ---------- Top header row ---------- */
.header-top { background: #fff; border-bottom: 1px solid #f0f0f3; }
.header-top-inner {
    display: flex; align-items: center; gap: 18px;
    padding: 12px 0; min-height: 76px;
}
.header-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.header-brand .brand-logo { height: 58px; width: auto; }

/* Search pill (location + detect + query + button) */
.header-search {
    flex: 1 1 auto;
    display: flex; align-items: center; gap: 10px;
    background: #fff;
    border: 1.5px solid #ececf1;
    border-radius: 999px;
    padding: 6px 6px 6px 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    max-width: 720px;
    margin: 0 auto;
    transition: var(--transition);
}
.header-search:focus-within { border-color: var(--primary-color); box-shadow: 0 6px 20px rgba(var(--primary-rgb),0.14); }

.hs-location { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.hs-location > i { color: var(--primary-color); font-size: 1.05rem; }
.hs-location select {
    border: 0; background: transparent; outline: none;
    font-size: 0.95rem; font-weight: 600; color: var(--text-dark);
    cursor: pointer; max-width: 120px;
}
.hs-detect {
    border: 0; background: transparent; color: #ff5a4d; font-size: 1.1rem;
    line-height: 1; padding: 4px; cursor: pointer; flex-shrink: 0; transition: var(--transition);
}
.hs-detect:hover { transform: scale(1.12); }
.hs-detect.detecting i { animation: hs-spin 0.9s linear infinite; }
@keyframes hs-spin { to { transform: rotate(360deg); } }
.hs-divider { width: 1px; height: 26px; background: #e2e2e8; flex-shrink: 0; }
.header-search input {
    flex: 1 1 auto; min-width: 0;
    border: 0; background: transparent; outline: none;
    font-size: 0.98rem; color: var(--text-dark); padding: 8px 4px;
}
.header-search input::placeholder { color: #9aa0ac; }
.hs-btn {
    flex-shrink: 0; width: 46px; height: 46px; border: 0; border-radius: 50%;
    background: var(--brand-gradient); color: #fff; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: var(--transition);
}
.hs-btn:hover { filter: brightness(1.06); box-shadow: 0 6px 16px rgba(var(--primary-rgb),0.4); }

/* Right-side actions */
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-action {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    text-decoration: none; color: var(--text-dark); font-size: 0.72rem; font-weight: 600;
}
.header-action i { font-size: 1.25rem; color: var(--primary-color); }
.header-action:hover { color: var(--primary-color); }

/* Cart + mini cart */
.cart-wrap { position: relative; }
.header-cart {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px; color: var(--text-dark);
    font-size: 1.35rem; text-decoration: none; transition: var(--transition);
}
.header-cart:hover { background: rgba(var(--primary-rgb),0.08); color: var(--primary-color); }
.header-cart .cart-badge { top: 2px; right: 2px; }

.header-burger {
    display: none; border: 0; background: transparent; color: var(--text-dark);
    font-size: 1.7rem; line-height: 1; cursor: pointer;
}

/* Mini cart dropdown (hover) */
.mini-cart {
    position: absolute; right: 0; top: calc(100% + 12px);
    width: 340px; max-width: 88vw; background: #fff;
    border-radius: 16px; box-shadow: 0 16px 44px rgba(0,0,0,0.18);
    border: 1px solid #f0f0f3; overflow: hidden;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 1050;
}
.mini-cart::before { /* bridge so hover doesn't drop */
    content: ""; position: absolute; top: -14px; right: 0; left: 0; height: 14px;
}
.cart-wrap:hover .mini-cart, .cart-wrap:focus-within .mini-cart {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.mini-cart-head {
    background: var(--brand-gradient); color: #fff; font-weight: 700;
    padding: 14px 18px; font-size: 0.95rem;
}
.mini-cart-body { max-height: 300px; overflow-y: auto; padding: 6px 0; }
.mini-cart-row {
    display: flex; align-items: center; gap: 10px; padding: 10px 18px;
    border-bottom: 1px solid #f5f5f8;
}
.mini-cart-row:last-child { border-bottom: 0; }
.mini-cart-row .mc-ic {
    width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
    background: var(--brand-gradient-soft); color: var(--primary-color);
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.mini-cart-row .mc-main { flex: 1 1 auto; min-width: 0; }
.mini-cart-row .mc-main h6 { margin: 0; font-size: 0.85rem; font-weight: 700; color: var(--text-dark);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-cart-row .mc-main small { color: var(--text-muted); font-size: 0.72rem; }
.mini-cart-row .mc-price { font-weight: 700; font-size: 0.85rem; color: var(--text-dark); white-space: nowrap; }
.mini-cart-row .mc-del {
    border: 0; background: transparent; color: #c0392b; cursor: pointer; font-size: 0.9rem; padding: 2px 4px;
}
.mini-cart-empty { padding: 34px 18px; text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.mini-cart-empty i { font-size: 2rem; color: var(--primary-lighter); display: block; margin-bottom: 8px; }
.mini-cart-foot { padding: 14px 18px; border-top: 1px solid #f0f0f3; }
.mini-cart-foot .mc-total { display: flex; justify-content: space-between; font-weight: 800; margin-bottom: 12px; }
.mini-cart-foot .mc-total .amt { color: var(--primary-color); }
.mini-cart-foot .btn-mc {
    display: block; text-align: center; text-decoration: none; border-radius: 10px;
    padding: 10px; font-weight: 700; font-size: 0.88rem;
}
.mini-cart-foot .btn-mc.solid { background: var(--brand-gradient); color: #fff; }
.mini-cart-foot .btn-mc.ghost { color: var(--primary-color); border: 1.5px solid rgba(var(--primary-rgb),0.3); margin-top: 8px; }
.mini-cart-foot .btn-mc.solid:hover { filter: brightness(1.05); }
.mini-cart-foot .btn-mc.ghost:hover { background: rgba(var(--primary-rgb),0.06); }

/* ---------- Bottom header / nav ---------- */
.header-nav { background: #241f20; }
.header-nav-inner { display: flex; align-items: center; justify-content: space-between; }
.header-menu {
    list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0;
}
.header-menu > li > a {
    display: block; color: #f2eeee; text-decoration: none;
    font-weight: 600; font-size: 0.9rem; letter-spacing: 0.2px;
    padding: 14px 18px; position: relative; transition: var(--transition);
}
.header-menu > li > a::after {
    content: ""; position: absolute; left: 18px; right: 18px; bottom: 8px; height: 2px;
    background: var(--primary-light); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.header-menu > li > a:hover { color: #fff; }
.header-menu > li > a:hover::after,
.header-menu > li > a.active::after { transform: scaleX(1); }
.header-menu > li > a.active { color: #fff; }
.header-nav-right a { color: #d8d2d3; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.header-nav-right a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .header-top-inner { flex-wrap: wrap; gap: 10px 14px; min-height: 0; padding: 10px 0; }
    .header-brand { order: 1; }
    .header-actions { order: 2; margin-left: auto; }
    .header-search { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
    .header-action { display: none !important; }
    .header-burger { display: inline-flex; align-items: center; }
    .header-nav { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
    .header-nav.open { max-height: 420px; }
    .header-nav-inner { display: block; }
    .header-menu { flex-direction: column; align-items: stretch; }
    .header-menu > li > a { padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .header-menu > li > a::after { display: none; }
    .header-menu > li > a.active { background: rgba(255,255,255,0.06); }
    .header-nav-right { display: none; }
    .hs-location select { max-width: 90px; }
}
@media (max-width: 480px) {
    .header-brand .brand-logo { height: 46px; }
    .header-search input { font-size: 0.9rem; }
}

/* ============================================================
   TWO-COLOR THEME (logo: maroon primary + green secondary)
   + header refinements (phone, smaller search, primary nav)
   ============================================================ */

:root {
    --secondary-color: #0fa64c;
    --secondary-rgb: 15, 166, 76;
    --secondary-light: #75ffb2;
    --secondary-dark: #008c32;
    --secondary-gradient: var(--secondary-color);
}

/* --- Secondary swatches in theme admin (mirror .theme-swatch) --- */
.secondary-swatch {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 12px 8px; border: 2px solid #e9ecef; border-radius: var(--radius);
    background: var(--white); cursor: pointer; transition: var(--transition);
    position: relative; overflow: hidden;
}
.secondary-swatch:hover { border-color: var(--secondary-color); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.secondary-swatch.active { border-color: var(--secondary-color); background: rgba(var(--secondary-rgb), 0.06); }
.secondary-swatch .swatch-color { width: 36px; height: 36px; border-radius: 50%; display: block; box-shadow: 0 2px 8px rgba(0,0,0,0.15); transition: transform .3s ease; }
.secondary-swatch:hover .swatch-color { transform: scale(1.15); }
.secondary-swatch .swatch-label { font-size: 0.75rem; font-weight: 600; color: var(--text-dark); }
.secondary-swatch .swatch-check { display: none; position: absolute; top: 6px; right: 6px; color: var(--secondary-color); font-size: 0.85rem; font-weight: bold; }
.secondary-swatch.active .swatch-check { display: block; }

/* ---------- Bottom header = PRIMARY color (gradient) ---------- */
.header-nav { background: var(--brand-gradient); }
.header-menu > li > a { color: rgba(255,255,255,0.92); }
.header-menu > li > a:hover,
.header-menu > li > a.active { color: #fff; }
.header-menu > li > a::after { background: #fff; }          /* white underline on colored bar */
.header-nav-right a { color: rgba(255,255,255,0.9); }
.header-nav-right a:hover { color: #fff; }
.header-nav-right a i { color: #fff; }
@media (max-width: 991.98px) {
    .header-menu > li > a { border-bottom: 1px solid rgba(255,255,255,0.14); }
    .header-menu > li > a.active { background: rgba(0,0,0,0.12); }
}

/* ---------- Top header: phone number ---------- */
.header-phone {
    display: flex; align-items: center; gap: 9px; text-decoration: none;
    color: var(--text-dark); flex-shrink: 0;
}
.header-phone .hp-icon {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    background: rgba(var(--secondary-rgb), 0.12); color: var(--secondary-color);
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.header-phone .hp-text { line-height: 1.15; }
.header-phone .hp-text small { display: block; font-size: 0.68rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.header-phone .hp-text strong { font-size: 1rem; color: var(--text-dark); white-space: nowrap; }
.header-phone:hover .hp-text strong { color: var(--secondary-color); }

/* ---------- Smaller search + right-aligned actions ---------- */
.header-search { max-width: 440px; margin: 0; }        /* was 720px & centered */
.header-actions { margin-left: auto; gap: 20px; }

/* Location pin = primary, detect crosshair = secondary (two logo colors) */
.hs-location > i { color: var(--primary-color); }
.hs-detect { color: var(--secondary-color); }

@media (max-width: 1199.98px) {
    .header-phone .hp-text { display: none; }             /* icon only on medium screens */
}
@media (max-width: 991.98px) {
    .header-search { flex-basis: 100%; max-width: none; }
    .header-phone { display: none; }                      /* keep mobile top row compact */
}

/* ---------- Secondary accents (logo green) in a few brand spots ---------- */
.header-action i { color: var(--secondary-color); }       /* "Book Test" icon */
.cat-card .pop-flag { color: #fff; background: var(--secondary-gradient); }
.cat-tab:hover { border-color: var(--secondary-color); color: var(--secondary-dark); }
.gradient-header .eyebrow { color: rgba(255,255,255,0.92); }

/* Home catalogue sections */
.home-cat-section .section-title { margin-bottom: 6px; }
.home-sec-eyebrow {
    display: inline-block; text-transform: uppercase; letter-spacing: 2px;
    font-size: 0.75rem; font-weight: 800; color: var(--secondary-color); margin-bottom: 6px;
}

/* Bottom-nav right tagline (span) */
.header-nav-right span { color: rgba(255,255,255,0.92); font-weight: 600; font-size: 0.88rem; }
.header-nav-right span i { color: #fff; }

/* ============================================================
   HEADER TWEAKS v2 — centered/slimmer search, lower nav,
   live search dropdown, and a light catalog page header
   ============================================================ */

/* Slightly less overall header height */
body { padding-top: 116px; }
@media (max-width: 991.98px) { body { padding-top: 146px; } }
.buy-box, .cart-summary { top: 132px; }

/* Center the search box between brand and actions */
.header-top-inner { min-height: 68px; }
.header-actions { margin-left: 0; }        /* remove right-push so auto-margins center search */
.header-search {
    flex: 0 1 460px;
    margin: 0 auto;                         /* centers in the free space */
    max-width: 460px;
    position: relative;                     /* anchor for suggestions */
    padding: 2px 4px 2px 16px;              /* lower height */
    gap: 8px;
}
.header-search input { padding: 6px 2px; font-size: 0.92rem; }
.hs-btn { width: 38px; height: 38px; font-size: 1rem; }
.hs-divider { height: 22px; }
.hs-location select { font-size: 0.9rem; }

/* Lower the bottom navigation bar */
.header-menu > li > a { padding: 10px 16px; font-size: 0.88rem; }
.header-menu > li > a::after { bottom: 5px; }
.header-nav-right span { font-size: 0.84rem; }

/* ---- Live search suggestions dropdown ---- */
.hs-suggest {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    background: #fff; border: 1px solid #eef0f5; border-radius: 14px;
    box-shadow: 0 16px 44px rgba(0,0,0,0.16); overflow: hidden;
    display: none; z-index: 1060; max-height: 380px; overflow-y: auto;
}
.hs-suggest.open { display: block; }
.hs-sug-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px;
    text-decoration: none; border-bottom: 1px solid #f5f5f8;
}
.hs-sug-item:last-of-type { border-bottom: 0; }
.hs-sug-item:hover, .hs-sug-item.active { background: rgba(var(--primary-rgb), 0.06); }
.hs-sug-ic {
    width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
    background: var(--brand-gradient-soft); color: var(--primary-color);
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.hs-sug-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.hs-sug-name { font-weight: 600; color: var(--text-dark); font-size: 0.9rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-sug-meta { font-size: 0.74rem; color: var(--text-muted); }
.hs-sug-price { font-weight: 700; color: var(--primary-color); font-size: 0.9rem; white-space: nowrap; }
.hs-sug-all {
    width: 100%; border: 0; background: var(--brand-gradient-soft); color: var(--primary-color);
    font-weight: 700; font-size: 0.85rem; padding: 11px 14px; cursor: pointer; text-align: center;
}
.hs-sug-all:hover { background: rgba(var(--primary-rgb), 0.12); }

@media (max-width: 991.98px) {
    .header-search { flex-basis: 100%; max-width: none; margin: 0; }
}

/* ---- Light (non-dark) header for the Tests & Packages page ---- */
.gradient-header.header-light {
    background: rgba(var(--primary-rgb), 0.05);
    color: var(--text-dark);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.08);
}
.gradient-header.header-light::after { display: none; }
.gradient-header.header-light .eyebrow { color: var(--secondary-color); }
.gradient-header.header-light h1 { color: var(--primary-color); }
.gradient-header.header-light p { color: var(--text-muted); }
.gradient-header.header-light .breadcrumb a { color: var(--primary-color); opacity: 1; }
.gradient-header.header-light .breadcrumb-item.active { color: var(--text-muted); }
.gradient-header.header-light .breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }
/* toolbar tucks under the light header the same way */
.header-light + .catalog-toolbar .toolbar-card { border: 1px solid #eef0f5; }

/* Home section "view all" text link next to the outline CTA */
.home-viewall { text-decoration: none; font-weight: 600; font-size: 0.9rem; color: var(--secondary-color); white-space: nowrap; }
.home-viewall:hover { color: var(--secondary-dark); }
.home-viewall i { transition: transform .2s ease; }
.home-viewall:hover i { transform: translateX(3px); }
@media (max-width: 575px){ .home-viewall { display:block; margin: 12px 0 0 !important; } }

/* ============================================================
   v3 — outline test/package buttons, unified page headers,
   and a light "Book Your Test Today" CTA
   ============================================================ */

/* Tests & Packages, detail, cart now use .page-header like every
   other page. Toolbar sits normally below the light header. */
.catalog-toolbar { margin-top: 24px; }

/* Outline "Add" buttons in ALL test/package places (catalog + home) */
.btn-add {
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    box-shadow: none;
}
.btn-add:hover {
    background: var(--brand-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.28);
}
.btn-add.added {
    background: rgba(var(--secondary-rgb), 0.10);
    color: var(--secondary-dark);
    border-color: var(--secondary-color);
    box-shadow: none;
}
.btn-add.added:hover {
    background: rgba(var(--secondary-rgb), 0.16);
    color: var(--secondary-dark);
    border-color: var(--secondary-color);
}

/* Outline add-to-cart on the detail page (full width) */
.btn-cta-outline {
    width: 100%;
    border: 1.5px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 12px;
    padding: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.btn-cta-outline:hover {
    background: var(--brand-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.28);
}
.btn-cta-outline.added {
    background: rgba(var(--secondary-rgb), 0.10);
    color: var(--secondary-dark);
    border-color: var(--secondary-color);
}

/* "Book Your Test Today" section above footer — light, not dark */
.cta-section {
    background: rgba(var(--primary-rgb), 0.05);
    color: var(--text-dark);
    border-top: 1px solid rgba(var(--primary-rgb), 0.08);
}
.cta-section h2 { color: var(--primary-color); }
.cta-section p { color: var(--text-muted); }
.cta-section .btn.btn-light {
    background: var(--brand-gradient) !important;
    color: #fff !important;
    border: 0 !important;
}
.cta-section .btn.btn-light:hover { filter: brightness(1.05); box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.3); }

/* ============================================================
   Footer compacting — tighter contact list, added socials
   ============================================================ */
.site-footer { padding: 44px 0 16px; }
.footer-heading { margin-bottom: 14px; }
.footer-links li { margin-bottom: 7px; }

/* Contact list: address in 3 lines, phones/emails one line each, tight */
.footer-contact li { margin-bottom: 8px; line-height: 1.5; }
.footer-contact li br { line-height: 1.5; }
.footer-contact li i { margin-top: 2px; }

/* Slightly smaller social icons, wrap gracefully with 5 icons */
.footer-social { flex-wrap: wrap; }
.footer-social a { width: 36px; height: 36px; }

/* Booking modal: selected-test banner (set by js/booking.js) */
.booking-selected {
    display: flex; align-items: center; gap: 6px;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-color);
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    border-radius: 10px; padding: 10px 14px; margin-bottom: 14px;
    font-size: 0.9rem;
}
.booking-selected strong { font-weight: 700; }
