/* ==========================================================================
   Labloure Website Stylesheet V2.8 - FINAL CLEANUP
   - Vials Hero text styles removed from CSS (as requested)
   - Default P color removed; explicit colors applied to all P tags needed.
   - Vials product grid spacing adjusted via padding-top.
   - All other V2.5 fixes maintained (layout, forms, cookies, logos etc.)
   ========================================================================== */

/* --- Fonts & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@400;600&display=swap');

:root {
    /* Colors */
    --deep-blue: #103A60;
    --primary-black: #212529;
    --primary-white: #ffffff;
    --light-grey-bg: #f8f9fa;
    --subtle-grey-bg: #fdfdfd;
    --medium-grey: #6c757d; /* Retained for explicit use */
    --border-grey: #dee2e6;
    --gold-accent: #bda06c; /* Corrected from muted-gold */
    --success-green: #198754;
    --error-red: #dc3545;
    --whatsapp-green: #25D366;
    --whatsapp-dark-green: #128C7E;
    --info-blue: #cfe2ff;
    --info-text: #084298;
    --info-border: #b6d4fe;
    --paywall-bg: rgba(248, 249, 250, 0.95);
    --paywall-blur: blur(5px);

    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    --base-font-size: 16px;
    --line-height: 1.7;
    --border-radius: 8px; /* Rounded corners */
    --box-shadow-light: 0 4px 10px rgba(0, 0, 0, 0.07);
    --box-shadow-medium: 0 7px 20px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.4s ease; /* Slightly slower */
    --container-width: 1240px;
    --container-padding: 15px;
    --header-height: 75px;
}

/* PDF download button */
.download-section {
    margin-top: 3rem;
    text-align: center;
}

.download-button-wrapper {
    margin-top: 1.5rem;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    font-weight: 500;
}

.download-icon {
    width: 20px;
    height: 20px;
}
/*---PDF download butto--*/

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: var(--base-font-size); scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 15px); overflow-x: clip; }
body { font-family: var(--body-font); line-height: var(--line-height); color: var(--primary-black); background-color: var(--primary-white); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, h4, h5, h6 { font-family: var(--heading-font); font-weight: 600; color: var(--deep-blue); margin-bottom: 1.2rem; line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.1rem); }
h3 { font-size: clamp(1.3rem, 3.5vw, 1.6rem); font-weight: 600; margin-bottom: 0.8rem; }
h4 { font-size: clamp(1rem, 2.5vw, 1.1rem); font-weight: 600; color: var(--deep-blue); margin-bottom: 0.5rem;}
p { margin-bottom: 1rem; /* Default color REMOVED */ }
/* >> EXPLICIT Paragraph Colors << */
.text-content p, .method-description p, .tech-description p,
.contact-info-container p, .details-content p, .paywall-content p,
.custom-solution-section p, .application-enquiry-section .lead-text, /* Target lead-text specifically */
.styled-form p, .modal-content p
{ color: var(--primary-black); }
.feature-item-alt p, .page-hero-simple p,
.results-cta-section .lead-text, .condensed-form p,
.application-table-section .subtitle,
.product-item-spe p, .product-item-vial p
{ color: var(--medium-grey); }
strong, b { font-weight: 700; color: inherit;}
a { color: var(--deep-blue); text-decoration: none; transition: color var(--transition-speed); }
a:hover { color: var(--gold-accent); }
img { max-width: 100%; height: auto; display: block; vertical-align: middle; border-radius: var(--border-radius); }
video, .whatsapp-icon, .footer-logo, .feature-icon, .contact-icon { border-radius: 0; /* Exclude specific elements */ }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; background: none; border: none; padding: 0; border-radius: var(--border-radius); }

/* --- Utilities --- */
.container { width: 90%; max-width: var(--container-width); margin-left: auto; margin-right: auto; padding-left: var(--container-padding); padding-right: var(--container-padding); }
.large-container { max-width: 1400px; }
.medium-container { max-width: 960px; }
.small-container { max-width: 720px; }
.text-center { text-align: center; }
.margin-top-medium { margin-top: 30px;}
.margin-top-large { margin-top: 50px;}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.content-section { padding: 70px 0; }
.alt-background { background-color: var(--primary-white); }
.highlight { font-weight: 600; border-bottom: 2px solid var(--gold-accent); padding-bottom: 1px; color: var(--primary-black); }
.grid-layout { display: grid; gap: var(--grid-gap, 40px); align-items: center; }
.grid-layout.grid-gap-large { --grid-gap: 60px; }
.grid-layout.grid-gap-medium { --grid-gap: 40px; }
@media (min-width: 768px) {
  .layout-sbs { grid-template-columns: 1fr 1fr; align-items: start; }
  .layout-sbs.reversed .text-content { order: 2; }
  .layout-sbs.reversed .image-content { order: 1; }
}

/* --- Header & Navigation --- */
.site-header { background-color: var(--primary-white); padding: 0; box-shadow: var(--box-shadow-light); position: sticky; top: 0; left: 0; width: 100%; z-index: 1000; height: var(--header-height); display: flex; align-items: center; transition: background-color 0.3s ease; }
.header-container { display: flex; justify-content: space-between; align-items: center; width: 90%; max-width: var(--container-width); margin: 0 auto; padding: 0 var(--container-padding); }
.logo img { width: 290px; height: auto; margin-top: 0; display: block; border-radius: 0;}
.main-nav > ul { display: flex; flex-wrap: nowrap; align-items: center; list-style: none; padding: 0; margin: 0; }
.main-nav li { display: flex; align-items: center; margin: 0 20px; }
.main-nav a, .nav-dropdown-toggle { display: inline-flex; align-items: center; justify-content: center; font-family: var(--heading-font); font-weight: 500; color: var(--primary-black); text-decoration: none; padding: 10px 0; position: relative; font-size: 1rem; line-height: 1.2; transition: color var(--transition-speed), border-color var(--transition-speed); letter-spacing: 0.5px; border-bottom: 2px solid transparent; white-space: nowrap }
.nav-dropdown-toggle { appearance: none; border-top: 0; border-left: 0; border-right: 0; background: none; cursor: pointer; }
.main-nav a:hover, .main-nav a.active, .nav-dropdown-toggle:hover, .nav-dropdown-toggle.active, .nav-item-dropdown:focus-within .nav-dropdown-toggle { color: var(--deep-blue); border-bottom-color: var(--gold-accent); }
.main-nav a::after { display: none; } /* Remove old underline effect */
.nav-item-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-toggle::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); transform-origin: center; }
.nav-dropdown { position: absolute; top: 100%; left: 50%; min-width: 260px; padding: 8px 0; margin: 0; list-style: none; background: var(--primary-white); border: 1px solid var(--border-grey); border-radius: 8px; box-shadow: var(--box-shadow-medium); opacity: 0; pointer-events: none; transform: translateX(-50%); transition: opacity var(--transition-speed); z-index: 1002; }
.nav-item-dropdown:hover .nav-dropdown, .nav-item-dropdown:focus-within .nav-dropdown { opacity: 1; pointer-events: auto; transform: translateX(-50%); }
.nav-dropdown li { margin: 0; width: 100%; }
.nav-dropdown a { display: block; padding: 10px 18px; border-bottom: 0; text-align: left; width: 100%; }
.nav-dropdown a:hover, .nav-dropdown a.active { background-color: var(--light-grey-bg); border-bottom-color: transparent; }
.menu-toggle { display: none; border: none; background: none; cursor: pointer; padding: 10px; z-index: 1001; width: 30px; height: 25px; position: relative; margin-left: 15px;}
.menu-toggle span { display: block; width: 100%; height: 2px; background-color: var(--primary-black); position: absolute; left: 0; transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease; border-radius: 1px; }
.menu-toggle span:nth-child(1) { top: 0; } .menu-toggle span:nth-child(2) { top: 9px; } .menu-toggle span:nth-child(3) { top: 18px; }
.menu-toggle.active span:nth-child(1) { top: 9px; transform: rotate(45deg); } .menu-toggle.active span:nth-child(2) { opacity: 0; } .menu-toggle.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* --- Hero Sections --- */
.hero { position: relative; color: var(--primary-white); display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.video-hero { height: 75vh; min-height: 450px; max-height: 650px; background-color: #222; }
.hero-video-background {
  position: absolute;
  top: 0; /* Change to 0 */
  left: 0; /* Change to 0 */
  width: 100%; /* Force width to 100% of parent */
  height: 100%; /* Force height to 100% of parent */
  object-fit: cover; /* <<<< CHANGE THIS TO 'cover' */
  /* object-position: center center; /* This is fine with cover */
  transform: none; /* Remove transform as top/left are 0 */
  z-index: 0;
  border-radius: 0; /* This is fine, does nothing if no visible border */
}
.hero.image-background { background-image: url('../images/hero-background.jpg'); background-size: cover; background-position: center center; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 850px; padding: 0 var(--container-padding); }
.hero h1 { color: var(--primary-white); font-size: clamp(2.2rem, 6vw, 3.5rem); font-weight: 700; margin-bottom: 1rem; text-shadow: 1px 1px 6px rgba(0,0,0,0.6); }
.hero p { font-size: clamp(1rem, 2.5vw, 1.2rem); margin-bottom: 2.5rem; color: rgba(255, 255, 255, 0.95); text-shadow: 1px 1px 4px rgba(0,0,0,0.5); max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.btn-hero { padding: 14px 35px; font-size: 1.1rem; }
.btn-hero-light { border: 1px solid rgba(255,255,255,0.75); color: var(--primary-white); background: rgba(255,255,255,0.12); backdrop-filter: blur(2px); }
.btn-hero-light:hover { border-color: var(--primary-white); background: var(--primary-white); color: var(--deep-blue); transform: translateY(-1px); box-shadow: var(--box-shadow-light); }
/* Vials Hero Styles (Integrated) */
.hero.vials-hero { height: 75vh; min-height: 550px; max-height: none; position: relative; z-index: 1; display: flex; align-items: center; padding: 0; background: none; color: initial; }
.hero.vials-hero .hero-overlay { display: none !important; }
.vials-hero-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; overflow: hidden; }
.vials-hero-background img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: none; opacity: 1; border-radius: 0; }
.hero.vials-hero .hero-content { position: static; width: 100%; }
/* Vials Hero Text styles REMOVED as requested */

/* --- Page Hero Simple --- */
.page-hero-simple { padding: 60px 0; background-color: var(--subtle-grey-bg); border-bottom: 1px solid var(--border-grey); text-align: center; }
.page-hero-simple h1 { font-size: clamp(2rem, 5vw, 2.5rem); margin-bottom: 0.75rem; color: var(--deep-blue);}
.page-hero-simple p { font-size: 1.1rem; margin-bottom: 0; max-width: 700px; margin: 0 auto; color: var(--medium-grey); }

/* --- News Ticker --- */
.news-ticker-section { background-color: var(--primary-black); color: #cccccc; padding: 0; overflow: hidden; height: 45px; display: flex; align-items: center;}
.ticker-container { display: flex; align-items: center; width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 var(--container-padding); height: 100%;}
.ticker-title { font-weight: 600; margin-right: 25px; color: var(--gold-accent); white-space: nowrap; flex-shrink: 0; }
.news-ticker-wrapper { flex-grow: 1; overflow: hidden; position: relative; height: 100%;}
.news-ticker-list { list-style: none; display: inline-block; padding-left: 0; margin: 0; animation: ticker-scroll 40s linear infinite; white-space: nowrap; height: 100%; display: flex; align-items: center; }
.news-ticker-list > li { display: inline-block; margin-right: 60px; font-size: 0.9rem; line-height: 1; }
.news-ticker-list a { color: var(--primary-white); text-decoration: underline; text-decoration-color: var(--gold-accent); margin-left: 8px; transition: color 0.2s ease; }
.news-ticker-list a:hover { color: var(--gold-accent); }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.news-ticker-wrapper:hover .news-ticker-list { animation-play-state: paused; }

/* --- Buttons & Links --- */
.btn { display: inline-block; padding: 12px 30px; border: 1px solid transparent; border-radius: var(--border-radius); font-family: var(--heading-font); font-weight: 500; font-size: 0.95rem; text-decoration: none; cursor: pointer; transition: all var(--transition-speed); text-align: center; line-height: 1.5; position: relative; overflow: hidden; z-index: 1; -webkit-tap-highlight-color: transparent; }
.btn-rounded { border-radius: 50px; }
.btn::after { content: ''; position: absolute; top: 50%; left: 50%; width: 5px; height: 5px; background: radial-gradient(circle closest-side, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 80%); border-radius: 50%; transform: translate(-50%, -50%) scale(1); opacity: 0; transition: transform 0.4s ease, opacity 0.4s ease; z-index: -1; pointer-events: none; }
.btn:hover::after { transform: translate(-50%, -50%) scale(70); opacity: 1; }
.btn-primary { background-color: var(--deep-blue); color: var(--primary-white); border-color: var(--deep-blue); }
.btn-primary:hover { background-color: #0a253f; border-color: #0a253f; color: var(--primary-white); transform: translateY(-1px); box-shadow: var(--box-shadow-light); }
.btn-secondary { background-color: transparent; color: var(--deep-blue); border: 1px solid var(--deep-blue); }
.btn-secondary:hover { background-color: var(--deep-blue); color: var(--primary-white); transform: translateY(-1px); }
.btn-small { padding: 8px 18px; font-size: 0.85rem;}
.btn-link { font-weight: 600; color: var(--deep-blue); text-decoration: none; transition: color var(--transition-speed), transform var(--transition-speed), border-color var(--transition-speed); display: inline-block; padding: 5px 0; border-bottom: 1px dotted transparent; }
.btn-link:hover { color: var(--gold-accent); transform: translateX(3px); border-bottom-color: var(--gold-accent); }

/* --- Images & Features --- */
.image-container-styled { overflow: hidden; border-radius: var(--border-radius); }
.image-container-styled img { border-radius: 0; box-shadow: var(--box-shadow-medium); display: block; transition: transform 0.6s ease-out, box-shadow 0.6s ease-out; }
.image-container-styled:hover img { transform: scale(1.03); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); }
.features-grid-alt { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-top: 40px; }
.feature-item-alt { text-align: center; padding: 20px; }
.feature-icon-wrapper { height: 55px; width: 55px; margin: 0 auto 25px auto; position: relative; }
.feature-icon { height: 100%; width: 100%; object-fit: contain; opacity: 0.85; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); border-radius: 0; }
.feature-item-alt:hover .feature-icon { transform: scale(1.12) rotate(7deg); }
.feature-item-alt h4 { margin-bottom: 10px; color: var(--deep-blue); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;}
.feature-item-alt p { font-size: 0.9rem; color: var(--medium-grey); max-width: 320px; margin-left: auto; margin-right: auto; line-height: 1.6;}

/* --- Homepage Product Preview Cards (Roche Style) --- */
.preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.preview-card { position: relative; overflow: hidden; border-radius: var(--border-radius); box-shadow: var(--box-shadow-medium); cursor: pointer; background-color: var(--subtle-grey-bg); min-height: 350px; display: flex; flex-direction: column; }
.preview-card .preview-image-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border-radius: var(--border-radius); }
.preview-card .preview-image { display: block; width: 100%; height: 100%; object-fit: cover; /* Changed from contain for better fill */ object-position: center center; border-radius: var(--border-radius); transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.preview-card:hover .preview-image { transform: scale(1.05); }
.preview-title-overlay { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 15px 25px; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%); border-radius: 0 0 var(--border-radius) var(--border-radius); transition: opacity 0.3s ease; }
.preview-title-overlay h3 { color: var(--primary-white); margin: 0; font-size: 1.4rem; font-weight: 600; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); text-align: left; }
.preview-content-hover { position: absolute; bottom: 0; left: 0; right: 0; top: 0; z-index: 3; background: linear-gradient(to top, rgba(16, 58, 96, 0.98) 0%, rgba(16, 58, 96, 0.9) 60%, rgba(16, 58, 96, 0.7) 100%); color: var(--primary-white); padding: 30px 25px 25px 25px; opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); pointer-events: none; border-radius: var(--border-radius); display: flex; flex-direction: column; justify-content: flex-end; }
.preview-card:hover .preview-content-hover { opacity: 1; transform: translateY(0); pointer-events: auto; }
.preview-card:hover .preview-title-overlay { opacity: 0.7; }
.preview-content-hover h3 { color: var(--primary-white); text-shadow: 1px 1px 2px rgba(0,0,0,0.3); margin-bottom: 10px; font-size: 1.4rem; font-weight: 600; text-align: left; }
.preview-content-hover p { color: rgba(255, 255, 255, 0.9); font-size: 0.9rem; margin-bottom: 20px; line-height: 1.5; text-align: left; }
.preview-content-hover .btn-link { color: var(--gold-accent); border-bottom-color: transparent; padding: 5px 0; margin-top: auto; align-self: flex-start; }
.preview-content-hover .btn-link:hover { color: var(--primary-white); border-bottom-color: var(--gold-accent); transform: translateX(0); }

/* --- Trusted By Logos Ticker --- */
.trusted-by-section { background-color: var(--primary-white); border-top: 1px solid var(--border-grey); padding: 60px 0; }
.subtle-title { text-align: center; color: var(--medium-grey); font-weight: 400; margin-bottom: 50px; text-transform: uppercase; letter-spacing: 1.5px; font-size: 1rem; }
.logo-ticker-wrapper { width: 100%; overflow: hidden; position: relative; padding: 20px 0; -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);}
.logos.logo-ticker-list { display: flex; padding-left: 100%; margin: 0; width: max-content; animation: logo-ticker-scroll 60s linear infinite; white-space: nowrap; gap: 120px; } /* Adjust gap if needed */
.logos img { max-height: 200px; /* Reduced size slightly */ width: auto; max-width: 300px; /* Adjusted max-width */ opacity: 0.8; filter: grayscale(70%); transition: opacity 0.3s ease, filter 0.3s ease; flex-shrink: 0; border-radius: 0; }
.logos img:hover { opacity: 1; filter: grayscale(0%); }
@keyframes logo-ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
.logo-ticker-wrapper:hover .logo-ticker-list { animation-play-state: paused; }


/* --- SPE Card Flip --- */
/* --- SPE Card Flip --- */
.product-grid-spe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 40px; margin-top: 30px; }
.intro-text-box { background-color: #ffffff; padding: 30px; border-radius: var(--border-radius); box-shadow: none; margin-bottom: 40px; border: 0px solid var(--border-grey); text-align: left; }
.intro-text-box h2 { text-align: center; }
.intro-text-box p { text-align: center; color: var(--medium-grey); }
.spe-card-flipper { background-color: transparent; height: 450px; perspective: 1000px; display: block; }
.spe-card-inner { position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.7s cubic-bezier(0.3, 1, 0.7, 1); transform-style: preserve-3d; box-shadow: var(--box-shadow-light); border-radius: var(--border-radius); }
.spe-card-inner.is-flipped { transform: rotateY(180deg); }
.spe-card-front, .spe-card-back { position: absolute; width: 100%; height: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 25px; border-radius: var(--border-radius); border: 1px solid var(--border-grey); background-color: var(--primary-white); }
.spe-card-back { background-color: var(--primary-white); color: var(--primary-black); transform: rotateY(180deg); justify-content: flex-start; overflow-y: auto; }
.spe-card-front .image-wrapper { height: 320px; width: 100%; margin-bottom: 15px; display: flex; align-items: center; justify-content: center; padding: 10px; }
.spe-card-front .image-wrapper img { max-height: 100%; max-width: 85%; object-fit: contain; border-radius: 0; }
.spe-card-front h4 { margin-bottom: 5px; }
.spe-card-front p { margin-bottom: 15px; font-size: 0.85rem; color: var(--medium-grey); }
.spe-card-back h5 { color: var(--deep-blue); margin-bottom: 15px; border-bottom: 1px solid var(--gold-accent); padding-bottom: 8px; width: 90%; text-align: center; }
.protocol-list-condensed dt { font-weight: 600; color: var(--deep-blue); margin-top: 8px; text-align: left;}
.protocol-list-condensed dd { font-size: 0.85rem; margin-left: 0; color: var(--primary-black); margin-bottom: 3px; text-align: left; }
.spe-card-back .btn-link, .spe-card-back .btn-flip-back { color: var(--deep-blue); font-weight: bold; margin-top: auto; padding-top: 15px; border: none; background: none; cursor: pointer; font-size: 0.9rem; }
.spe-card-back .btn-link:hover, .spe-card-back .btn-flip-back:hover { color: var(--gold-accent); text-decoration: underline; border-bottom-color: transparent; }
.spe-card-flipper button.btn-flip { display: inline-block; margin-top: 10px; border: none; background: none; padding: 5px 0; }
.spe-card-back .modal-close { position: absolute; top: 10px; right: 15px; font-size: 24px; line-height: 1; color: var(--medium-grey); padding: 0; margin: 0; border: none; background: none; }
.spe-card-back .modal-close:hover { color: var(--primary-black); }

/* --- ENHANCEMENTS: mobile layout, border highlight, slight rise on hover --- */

/* 1. Two‑column at ≤768px, one‑column at ≤480px */
@media (max-width: 768px) {
  .product-grid-spe {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .product-grid-spe {
    grid-template-columns: 1fr;
  }
}

/* 2. Border‑color highlight on hover */
.spe-card-front:hover,
.spe-card-back:hover {
  border-color: var(--deep-blue);
}

/* 3. Slight rise on hover without affecting flip */
.spe-card-inner:not(.is-flipped):hover {
  transform: translateY(-5px);
}
.spe-card-inner.is-flipped:hover {
  transform: rotateY(180deg) translateY(-5px);
}


/* --- END SPE Card Flip --- */


/* --- Vials Page Grid --- */
.vials-product-grid-section {
    padding-top: 40px; /* Adjusted padding as per previous step - modify if needed */
}

.product-grid-vials {
    display: grid;
    /* Default for smaller screens: Auto-fit columns, minimum 160px wide */
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    margin-top: 30px;
}

/* Apply 5 columns ONLY on screens 1200px wide or larger */
@media (min-width: 1200px) {
    .product-grid-vials {
        grid-template-columns: repeat(5, 1fr); /* Force 5 equal columns */
    }
}

/* Styles for individual vial items remain the same */
.product-item-vial {
    text-align: center;
    background-color: var(--primary-white);
    padding: 25px 15px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-grey);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed), transform var(--transition-speed);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-item-vial:hover {
    border-color: var(--deep-blue);
    box-shadow: var(--box-shadow-medium);
    transform: translateY(-4px);
}
.product-item-vial .image-wrapper {
    margin: 0 auto 15px auto;
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-item-vial .image-wrapper img {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
}
.product-item-vial h4 {
    margin-bottom: 5px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--deep-blue);
    min-height: 2.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    line-height: 1.3;
}
.product-item-vial p {
    font-size: 0.85rem;
    color: var(--medium-grey); /* Explicit color */
    margin-bottom: 0;
    line-height: 1.4;
}
.product-item-vial .product-size {
    font-weight: normal;
    font-size: 0.8rem;
    color: var(--gold-accent);
    margin-bottom: 5px;
    display: block;
    line-height: 1;
}

/* Custom Solution CTA styles remain the same */
.custom-solution-section {
    margin-top: 50px;
    padding: 30px;
    background-color: var(--light-grey-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-grey);
}
.custom-solution-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3rem;
}
.custom-solution-section p {
    margin-bottom: 20px;
    color: var(--primary-black); /* Explicit color */
}

/* --- END OF VIALS PAGE GRID SECTION --- */

/* --- Affinity Advantage & Methodology --- */
.affinity-advantage-section { padding-top: 60px; padding-bottom: 60px; border-top: 0px solid var(--border-grey); }
.affinity-advantage-section h3 { text-align: left; }
.affinity-advantage-section p { text-align: left; }
.methodology-section { padding-top: 0; padding-bottom: 0; }
.methodology-section h4 { color: var(--deep-blue); font-weight: 600; margin-bottom: 0.5rem; }

/* --- Blog & Articles --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--primary-white);
    border: 1px solid var(--border-grey);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow-light);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
}
.blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--deep-blue);
    box-shadow: var(--box-shadow-medium);
}
.blog-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0;
}
.blog-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 26px;
}
.blog-card-meta {
    color: var(--gold-accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.blog-card-content h3 {
    font-size: 1.18rem;
}
.blog-card-content p {
    color: var(--primary-black);
}
.blog-card-content .btn {
    align-self: flex-start;
    margin-top: auto;
}
.blog-card-muted {
    background: var(--light-grey-bg);
}

/* --- Sample Preparation Systems --- */
.eyebrow {
    color: var(--gold-accent);
    font-family: var(--heading-font);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}
.sample-prep-hero {
    background:
        linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.96)),
        url('../images/sample-preparation/nitrogen-evaporator.png') center 42% / cover no-repeat;
}
.sample-prep-hero-actions,
.sample-prep-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}
.sample-prep-overview {
    padding-bottom: 50px;
}
.sample-prep-capabilities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.sample-prep-capabilities div {
    min-height: 118px;
    padding: 24px;
    background: var(--primary-white);
    border: 1px solid var(--border-grey);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
}
.sample-prep-capabilities strong {
    display: block;
    color: var(--deep-blue);
    font-family: var(--heading-font);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    line-height: 1.1;
    margin-bottom: 8px;
}
.sample-prep-capabilities span {
    display: block;
    color: var(--medium-grey);
    line-height: 1.45;
}
.section-subtitle {
    color: var(--medium-grey);
    max-width: 720px;
    margin: 0 auto;
}
.sample-prep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 42px;
}
.sample-prep-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    background: var(--primary-white);
    border: 1px solid var(--border-grey);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
}
.sample-prep-card:hover {
    transform: translateY(-4px);
    border-color: var(--deep-blue);
    box-shadow: var(--box-shadow-medium);
}
.sample-prep-image-wrap {
    height: 260px;
    padding: 14px;
    background: var(--light-grey-bg);
    border-bottom: 1px solid var(--border-grey);
}
.sample-prep-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
}
.sample-prep-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px;
}
.sample-prep-card-body h3 {
    font-size: 1.28rem;
}
.sample-prep-card-body p {
    color: var(--primary-black);
}
.sample-prep-highlights {
    display: grid;
    gap: 8px;
    margin: 8px 0 22px;
    padding-left: 0;
}
.sample-prep-highlights li {
    position: relative;
    color: var(--primary-black);
    line-height: 1.55;
    padding-left: 18px;
}
.sample-prep-highlights li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    background: var(--gold-accent);
    border-radius: 50%;
}
.sample-prep-specs {
    display: grid;
    gap: 0;
    margin-top: auto;
    border: 1px solid var(--border-grey);
    border-radius: var(--border-radius);
    overflow: hidden;
}
.sample-prep-specs div {
    display: grid;
    grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.2fr);
    gap: 14px;
    padding: 11px 14px;
    background: var(--primary-white);
    border-bottom: 1px solid var(--border-grey);
}
.sample-prep-specs div:nth-child(odd) {
    background: var(--subtle-grey-bg);
}
.sample-prep-specs div:last-child {
    border-bottom: 0;
}
.sample-prep-specs dt {
    color: var(--deep-blue);
    font-weight: 700;
}
.sample-prep-specs dd {
    color: var(--primary-black);
    margin: 0;
}
.sample-prep-cert-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.sample-prep-cert-list span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 13px;
    color: var(--deep-blue);
    background: var(--light-grey-bg);
    border: 1px solid var(--border-grey);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
}
.sample-prep-cta {
    padding: 34px;
    background: var(--primary-white);
    border: 1px solid var(--border-grey);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
}
.sample-prep-cta h3,
.sample-prep-cta p {
    text-align: center;
}
.sample-prep-cta p {
    color: var(--primary-black);
}
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 50px;
    align-items: start;
}
.article-body {
    max-width: 850px;
}
.article-body .article-meta {
    color: var(--gold-accent);
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
    text-transform: uppercase;
}
.article-body h2 {
    margin-top: 42px;
}
.article-body h3 {
    margin-top: 30px;
    color: var(--primary-black);
}
.article-body p,
.article-body li {
    color: var(--primary-black);
}
.article-body ul,
.article-body ol {
    list-style: disc;
    margin: 0 0 24px 24px;
}
.article-hero-image {
    margin: 30px 0;
    border: 1px solid var(--border-grey);
    box-shadow: var(--box-shadow-light);
}
.article-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 30px);
    padding: 26px;
    background: var(--light-grey-bg);
    border: 1px solid var(--border-grey);
    border-radius: var(--border-radius);
}
.article-sidebar h3 {
    font-size: 1.05rem;
}
.article-sidebar ul {
    list-style: none;
    margin: 0 0 24px;
}
.article-sidebar li {
    border-bottom: 1px solid var(--border-grey);
    padding: 10px 0;
}
.article-sidebar li:last-child {
    border-bottom: 0;
}

/* --- Application List & Generic Info --- */
.application-table-section .subtitle { font-style: italic; color: var(--medium-grey); font-size: 0.9rem; margin-top: -15px; margin-bottom: 40px; }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; border: 1px solid var(--border-grey); border-radius: var(--border-radius); }
.styled-table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 0.9rem; }
.styled-table th, .styled-table td { border: 1px solid var(--border-grey); padding: 12px 15px; text-align: left; vertical-align: middle; white-space: nowrap; border-left: none; border-right: none; }
.styled-table td:nth-child(1), .styled-table td:nth-child(2), .styled-table td:nth-child(5), .styled-table td:nth-child(6) { white-space: normal; }
.styled-table td:nth-child(2) { min-width: 180px; }
.styled-table td:nth-child(3), .styled-table td:nth-child(4) { text-align: right; }
.styled-table thead th { background-color: var(--subtle-grey-bg); color: var(--deep-blue); font-family: var(--heading-font); font-weight: 600; border-bottom: 2px solid var(--deep-blue); position: sticky; top: 0; z-index: 10; border-top: none;}
.styled-table tbody tr:nth-child(even) { background-color: var(--subtle-grey-bg); }
.styled-table tbody tr:hover { background-color: #e9ecef; }
.styled-table tbody tr:last-child td { border-bottom: none; }
.styled-table tbody td a { font-weight: 600; color: var(--deep-blue); text-decoration: none; border-bottom: 1px dotted var(--deep-blue); transition: color 0.2s, border-color 0.2s; }
.styled-table tbody td a:hover { color: var(--gold-accent); border-bottom-color: var(--gold-accent); }
.highlight-cell { font-weight: 600; color: var(--deep-blue); }
.generic-protocol-info { border-top: 0px solid var(--border-grey); margin-top: 70px; }
.details-toggle-btn { background: var(--light-grey-bg); border: 1px solid var(--border-grey); padding: 5px 12px; border-radius: var(--border-radius); font-size: 0.85rem; font-weight: 600; color: var(--deep-blue); margin-left: 10px; cursor: pointer; transition: background-color 0.2s; }
.details-toggle-btn:hover { background-color: #e9ecef; }
.details-content { margin-top: 20px; padding: 30px; background-color: white; border: 1px solid var(--border-grey); border-radius: var(--border-radius); box-shadow: var(--box-shadow-light); }
.details-content h4 { font-size: 1.2rem; margin-top: 20px; margin-bottom: 10px; color: var(--primary-black); border-bottom: 1px solid var(--border-grey); padding-bottom: 8px; }
.details-content h4:first-child { margin-top: 0; }
.details-content h5 { font-size: 1rem; margin-top: 25px; margin-bottom: 10px; color: var(--deep-blue); font-weight: 600; }
.details-content ul { list-style: disc; margin-left: 25px; margin-bottom: 15px; }
.details-content ul li { margin-bottom: 5px; color: var(--primary-black); }
dl.protocol-list { margin: 20px 0; padding-left: 15px; border-left: 3px solid var(--light-grey-bg); }
dl.protocol-list dt { font-weight: 600; margin-bottom: 8px; color: var(--deep-blue); }
dl.protocol-list dd { margin-left: 20px; margin-bottom: 5px; font-size: 0.9rem; color: var(--primary-black); }
.simple-product-table { margin-top: 15px; font-size: 0.85rem; min-width: 0; border: 1px solid var(--border-grey);}
.simple-product-table th, .simple-product-table td { padding: 8px 10px; border: 1px solid var(--border-grey); text-align: center;}
.simple-product-table thead th { background-color: #e9ecef; text-align: center;}

/* --- Application Detail & Paywall/CTA --- */
.detail-section-title { border-bottom: 1px solid var(--border-grey); padding-bottom: 10px; margin-bottom: 25px;}
.application-detail h3 { font-size: 1.2rem; color: var(--primary-black); font-weight: 600; margin-top: 30px; }
.chromatogram { margin-bottom: 40px; text-align: center; }
.chromatogram img { border: 1px solid var(--border-grey); padding: 5px; background-color: var(--primary-white); box-shadow: var(--box-shadow-light); border-radius: var(--border-radius); display: inline-block; max-width: 100%; height: auto;}
.calibration-curves { margin-top: 30px; display: grid; grid-template-columns: 1fr; gap: 30px; }
.graph { text-align: center; border: 1px solid var(--border-grey); padding: 15px; background-color: #fff; border-radius: var(--border-radius); box-shadow: var(--box-shadow-light); }
.graph h3 { font-size: 1rem; margin-bottom: 10px; font-weight: 500; }
.graph img { max-width: 100%; height: auto; border: 1px solid #eee; border-radius: 0;}
/* Paywall Structure */
/* .results-cta-section.paywall-active { border: 1px solid var(--border-grey); background-color: var(--subtle-grey-bg); padding: 40px; border-radius: var(--border-radius); margin-top: 50px; } */
/* .results-cta-section h2 { margin-top: 0; color: var(--deep-blue); font-size: 1.6rem; } */
/* .results-cta-section .lead-text { color: var(--primary-black); margin-bottom: 30px; } */
/* .results-preview { margin: 25px 0; position: relative; } */
/* .results-preview h3 { font-size: 1.1rem; margin-bottom: 15px; font-weight: 600; } */
/* .partially-visible-table { max-height: 210px; overflow: hidden; position: relative; border: 1px solid var(--border-grey); border-radius: var(--border-radius) var(--border-radius) 0 0; -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%); mask-image: linear-gradient(to bottom, black 75%, transparent 100%); } */
/* .results-table { width: 100%; border-collapse: collapse; font-size: 0.9em; margin-bottom: 15px; } */
/* .results-table th, .results-table td { padding: 8px 12px; border: 1px solid var(--border-grey); text-align: left; } */
/* .results-table thead th { background-color: #e9ecef; font-weight: 600; } */
/* .results-table tbody tr:nth-child(even) { background-color: #f8f9fa; } */
/* .paywall-overlay { position: absolute; bottom: 0; left: 0; right: 0; height: 100%; background: linear-gradient(to top, var(--paywall-bg) 0%, var(--paywall-bg) 40%, rgba(248, 249, 250, 0.7) 70%, transparent 100%); backdrop-filter: var(--paywall-blur); -webkit-backdrop-filter: var(--paywall-blur); display: flex; justify-content: center; align-items: flex-end; padding: 30px; border-radius: 0 0 var(--border-radius) var(--border-radius); z-index: 10; text-align: center; } */
/* .paywall-content { max-width: 450px; width: 100%; background: rgba(255,255,255,0.85); padding: 25px; border-radius: var(--border-radius); box-shadow: var(--box-shadow-light); } */
/* .paywall-content h4 { color: var(--deep-blue); font-size: 1.2rem; margin-bottom: 8px;} */
/* .paywall-content p { font-size: 0.9rem; color: var(--primary-black); margin-bottom: 15px;} */
/* .condensed-form .form-group { margin-bottom: 15px; } */
/* .condensed-form button { width: 100%; } */

/* Keep the basic results section styles */
.results-section {
    margin-top: 30px;
}

.results-content {
    margin-top: 25px;
}

/* --- Forms --- */
.styled-form { max-width: 650px; margin: 0 auto; }
.styled-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.styled-form .form-group { margin-bottom: 20px; position: relative; }
.styled-form .form-row .form-group { margin-bottom: 0; }
.styled-form label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; color: var(--primary-black); text-align: left; }
.styled-form input[type="text"], .styled-form input[type="email"], .styled-form input[type="tel"], .styled-form input[type="number"], .styled-form textarea, .styled-form select { width: 100%; padding: 10px 12px; border: 1px solid var(--border-grey); border-radius: var(--border-radius); font-family: var(--body-font); font-size: 0.95rem; transition: border-color var(--transition-speed), box-shadow var(--transition-speed); background-color: #fff; color: var(--primary-black); }
.styled-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23103A60' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 1rem; padding-right: 2.5rem; cursor: pointer; }
.styled-form input:focus, .styled-form textarea:focus, .styled-form select:focus { border-color: var(--deep-blue); box-shadow: 0 0 0 0.15rem rgba(16, 58, 96, 0.2); outline: none; }
.styled-form textarea { resize: vertical; min-height: 120px; }
.styled-form button[type="submit"] { min-width: 180px; margin-top: 10px; }
.styled-form .error-message { display: none; color: var(--error-red); font-size: 0.8rem; margin-top: 5px; text-align: left; }
.styled-form input.error, .styled-form textarea.error, .styled-form select.error { border-color: var(--error-red) !important; }
.styled-form .error-message:not(.info-message) { display: none;}
.styled-form input.error + .error-message:not(.info-message),
.styled-form textarea.error + .error-message:not(.info-message),
.styled-form select.error + .error-message:not(.info-message) { display: block; }
.info-message { display: block !important; color: var(--medium-grey) !important; font-style: italic; font-size: 0.8rem; margin-top: 5px; text-align: left; }
.form-status { margin-top: 15px; padding: 12px 15px; border-radius: var(--border-radius); font-size: 0.9rem; display: none; text-align: left; line-height: 1.5; }
.form-status.success { background-color: #d1e7dd; color: #0f5132; border: 1px solid #a3cfbb; display: block; }
.form-status.error { background-color: #f8d7da; color: #842029; border: 1px solid #f5c2c7; display: block; }
.form-status.info { background-color: var(--info-blue); color: var(--info-text); border: 1px solid var(--info-border); display: block; }
.form-status a { font-weight: bold; text-decoration: underline; color: inherit !important; }
.application-enquiry-section { border-top: 1px solid var(--border-grey); }

/* --- Contact Page Layout --- */
.contact-page-section .grid-layout { align-items: start; }
.map-section { padding: 50px 0; }
.contact-details .contact-block { display: flex; align-items: flex-start; margin-bottom: 25px; }
.contact-icon { width: 22px; height: 22px; margin-right: 15px; margin-top: 5px; flex-shrink: 0; opacity: 0.7; transition: transform 0.3s ease; border-radius: 0;}
.contact-block:hover .contact-icon { transform: scale(1.1) rotate(3deg); }
.contact-block h4 { margin-bottom: 5px; font-size: 1rem; font-weight: 600; color: var(--primary-black); }
.contact-block p { margin-bottom: 3px; font-size: 0.95rem; color: var(--medium-grey); line-height: 1.5; }
.contact-block a { color: var(--deep-blue); font-weight: 500;}
.contact-block a:hover { text-decoration: underline; color: var(--gold-accent); }
#map { border-radius: var(--border-radius); box-shadow: var(--box-shadow-light); border: 1px solid var(--border-grey); height: 450px; width: 100%; background-color: var(--light-grey-bg); }

/* --- Footer --- */
.site-footer-main { background-color: var(--primary-black); color: #adb5bd; padding: 60px 0 0 0; font-size: 0.9rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px 40px; margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid #495057; }
.footer-logo-wrapper { height: 40px; width: auto; margin-bottom: 20px; position: relative; max-width: 200px; display: inline-block; }
.footer-logo-wrapper img { object-fit: contain; width: 100%; height: 100%; border-radius: 0;}
.footer-col p { margin-bottom: 10px; line-height: 1.6; color: #adb5bd !important; }
.footer-col p a { color: #adb5bd; }
.footer-col p a:hover { color: var(--primary-white); }
.footer-col h4 { color: var(--primary-white); margin-bottom: 20px; font-size: 1.1rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links ul { list-style: none; padding: 0; margin: 0;}
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #adb5bd; transition: color 0.2s ease, border-color 0.2s ease; border-bottom: 1px solid transparent; padding-bottom: 2px;}
.footer-links a:hover { color: var(--primary-white); text-decoration: none; border-bottom-color: var(--gold-accent); }
.footer-bottom { text-align: center; padding: 25px 0; font-size: 0.85rem; color: var(--medium-grey); }
.footer-bottom p { color: var(--medium-grey) !important; }

/* --- Modal Styling (Quote Form) --- */
.modal { display: none; position: fixed; z-index: 1050; left: 0; top: 0; width: 100%; height: 100%; overflow-x: hidden; overflow-y: auto; /* Allow scroll */ background-color: rgba(0, 0, 0, 0); backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px); transition: background-color 0.3s ease, backdrop-filter 0.3s ease; pointer-events: none; }
.modal.modal-show { display: flex; justify-content: center; align-items: center; background-color: rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); pointer-events: auto; }
.modal-content {
    background-color: var(--primary-white) !important;
    color: var(--primary-black);
    position: relative; /* Changed from fixed */
    top: auto; left: auto; /* Reset positioning */
    transform: scale(0.95) translateY(-20px); /* Start scaled down and up */
    padding: 30px 40px;
    border: none;
    width: 90%; max-width: 700px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-medium);
    opacity: 0; visibility: hidden;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    z-index: 1051;
    margin: 20px; /* Add margin for spacing */
}
.modal.modal-show .modal-content { transform: scale(1) translateY(0); opacity: 1; visibility: visible; }
.close-modal { color: #aaa; position: absolute; top: 10px; right: 15px; font-size: 28px; font-weight: bold; line-height: 1; background: none; border: none; cursor: pointer; padding: 5px; border-radius: 50%; width: 30px; height: 30px; display: flex; justify-content: center; align-items: center;}
.close-modal:hover, .close-modal:focus { color: var(--primary-black); background-color: #f1f1f1; }
.modal .section-title { margin-top: 0; margin-bottom: 25px; }
.modal-content label { color: var(--primary-black); }
.modal-overlay { /* REMOVED - Handled by modal wrapper now */ }

/* --- Cookie Consent Banner --- */
.cookie-consent-banner { position: fixed; bottom: 0; left: 0; right: 0; background-color: rgba(33, 37, 41, 0.98); color: var(--primary-white); padding: 20px 0; z-index: 1100; box-shadow: 0 -3px 12px rgba(0,0,0,0.25); font-size: 1rem; backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transform: translateY(100%); transition: transform 0.6s ease-out, opacity 0.6s ease-out, visibility 0s linear 0.6s; }
.cookie-consent-banner.show { transform: translateY(0); opacity: 1; visibility: visible; transition: transform 0.6s ease-out, opacity 0.6s ease-out, visibility 0s linear 0s; }
.cookie-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px 30px; width: 90%; max-width: var(--container-width); margin: 0 auto; padding: 0 var(--container-padding); }
.cookie-consent-banner p { margin: 0; line-height: 1.5; flex-grow: 1; min-width: 250px; padding-right: 20px; color: var(--primary-white); }
.cookie-consent-banner a { color: var(--gold-accent); text-decoration: underline; font-weight: 600; }
.cookie-consent-banner a:hover { color: #d4af7a; }
.cookie-buttons { display: flex; gap: 15px; flex-shrink: 0; flex-wrap: nowrap; }
.cookie-buttons button { padding: 9px 22px; font-size: 0.9rem; white-space: nowrap; }
#decline-cookies { display: none; }

/* --- WhatsApp Button --- */
.whatsapp-button { position: fixed; bottom: 25px; right: 25px; background-color: var(--whatsapp-green); color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); z-index: 999; transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease; text-decoration: none; border: none; }
.whatsapp-button:hover { transform: scale(1.1); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); background-color: var(--whatsapp-dark-green); }
.whatsapp-icon { width: 55%; height: auto; fill: currentColor; border-radius: 0; }

/* --- Animations --- */
.animate-on-scroll { opacity: 0; transition: opacity 0.8s ease-out, transform 0.8s ease-out; will-change: opacity, transform; }
.fade-in { transform: translateY(30px); } .fade-in-up { transform: translateY(50px); } .fade-in-left { transform: translateX(-50px); } .fade-in-right { transform: translateX(50px); }
.animate-on-scroll.is-visible { opacity: 1; transform: translate(0, 0) !important; }
.delay-1 { transition-delay: 0.15s; } .delay-2 { transition-delay: 0.3s; } .delay-3 { transition-delay: 0.45s; } .delay-4 { transition-delay: 0.6s; } .delay-5 { transition-delay: 0.75s; }

/* --- Responsive --- */
@media (max-width: 1024px) { :root { --base-font-size: 15px; } .grid-gap-large { gap: 40px; } .content-section { padding: 60px 0; } .product-grid-spe.layout-3x2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));} .preview-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
@media (max-width: 992px) {
    :root { --header-height: 70px;}
    .main-nav { position: absolute; top: var(--header-height); left: 0; right: 0; background-color: var(--primary-white); box-shadow: var(--box-shadow-medium); max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease-out; padding: 0; border-top: 1px solid var(--border-grey); z-index: 999; }
    .main-nav.active { max-height: 650px; padding: 10px 0; }
    .main-nav > ul { flex-direction: column; align-items: stretch; width: 100%; }
    .main-nav li { display: block; margin: 0; width: 100%; }
    .main-nav a, .nav-dropdown-toggle { display: block; padding: 12px 20px; width: 100%; border-bottom: 1px solid var(--subtle-grey-bg); text-align: center; }
    .main-nav > ul > li:last-child > a { border-bottom: none; }
    .main-nav a::after { display: none; }
    .main-nav a.active, .main-nav a:hover, .nav-dropdown-toggle.active, .nav-dropdown-toggle:hover { background-color: var(--light-grey-bg); color: var(--deep-blue); border-bottom-color: transparent; }
    .nav-item-dropdown { display: flex; flex-direction: column; align-items: stretch; }
    .nav-dropdown-toggle::after { margin-left: 10px; }
    .nav-dropdown { position: static; display: block; width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; opacity: 1; pointer-events: auto; transform: none; background-color: var(--subtle-grey-bg); }
    .nav-item-dropdown:hover .nav-dropdown, .nav-item-dropdown:focus-within .nav-dropdown { opacity: 1; transform: none; }
    .nav-dropdown li { display: block; width: 100%; }
    .nav-dropdown a { display: block; width: 100%; padding: 10px 24px; font-size: 0.95rem; line-height: 1.35; border-bottom: 1px solid var(--border-grey); text-align: center; white-space: normal; overflow-wrap: anywhere; }
    .menu-toggle { display: block; }
    .grid-layout:not(.features-grid-alt):not(.product-grid-spe):not(.preview-grid):not(.calibration-curves):not(.product-grid-vials) { grid-template-columns: 1fr; }
    .grid-layout.reversed .text-content, .grid-layout.reversed .image-content { order: initial; }
    .animate-on-scroll.fade-in-left, .animate-on-scroll.fade-in-right { transform: translateY(30px) !important; }
    .image-container-styled.is-visible img { transform: translateY(0) scale(1); }
    .styled-form .form-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 0;}
    .styled-form .form-row .form-group { margin-bottom: 20px;}
    .styled-form .form-row .form-group:last-child { margin-bottom: 0; }
    .ticker-container { flex-direction: column; align-items: flex-start; }
    .ticker-title { margin-bottom: 8px;}
    .news-ticker-wrapper { width: 100%; }
    .news-ticker-section { height: auto; padding: 15px 0;}
    .vials-hero { background-position: center 20%; height: 60vh; min-height: 400px; }
    .hero.vials-hero .hero-content { justify-content: center; }
    .hero.vials-hero .vials-hero-text { display: none; /* Hide text block completely on mobile/tablet */}
    .product-grid-spe { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .preview-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    .contact-page-section .layout-sbs { grid-template-columns: 1fr; }
    .article-layout { grid-template-columns: 1fr; gap: 30px; }
    .article-sidebar { position: static; }
    .sample-prep-capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #map { height: 350px; }
}
@media (max-width: 768px) {
    :root { --base-font-size: 14px; }
    h1 { font-size: 2rem; } h2 { font-size: 1.8rem; }
    .hero { height: 70vh; min-height: 450px; } .hero h1 { font-size: 2.2rem; } .hero p { font-size: 1rem; }
    .content-section { padding: 50px 0; }
    .footer-content { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } .footer-col { text-align: center; } .footer-logo-wrapper { margin-left: auto; margin-right: auto; }
    .product-grid-spe, .product-grid-vials { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .sample-prep-grid { grid-template-columns: 1fr; }
    .sample-prep-image-wrap { height: 230px; }
    .sample-prep-capabilities { grid-template-columns: 1fr; }
    .sample-prep-specs div { grid-template-columns: 1fr; gap: 4px; }
    .sample-prep-hero-actions, .sample-prep-cta-actions { flex-direction: column; align-items: stretch; }
    .spe-card-flipper { height: auto; min-height: 340px; }
    .results-cta-section { padding: 30px 25px; }
    .cookie-container { flex-direction: column; text-align: center; } .cookie-buttons { margin-top: 15px; flex-wrap: wrap; justify-content: center; }
    .logos img { max-height: 70px; max-width: 180px; }
    .styled-table { min-width: 700px; }
    .calibration-curves { grid-template-columns: 1fr; }
    .core-tech-grid { grid-template-columns: 1fr; }
    .preview-grid { grid-template-columns: 1fr; }
     .product-grid-spe.layout-3x2 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));}
     .modal-content { max-width: 90%; padding: 25px 30px;}
}
@media (max-width: 576px) {
    .hero { height: 65vh; min-height: 400px; } .hero h1 { font-size: 1.8rem; } .hero p { font-size: 0.9rem; }
    .logos img { max-height: 60px; }
    .product-grid-spe, .product-grid-vials { grid-template-columns: repeat(2, 1fr); gap: 15px;}
    .product-item-spe, .product-item-vial { padding: 15px 10px;}
    .styled-table { font-size: 0.85rem; min-width: 500px; } .styled-table th, .styled-table td { padding: 9px 10px; white-space: normal; } .styled-table thead th { white-space: nowrap; }
    .footer-content { grid-template-columns: 1fr; }
    .whatsapp-button { width: 45px; height: 45px; bottom: 15px; right: 15px; }
    .whatsapp-icon { width: 50%; }
    .news-ticker-list { animation-duration: 50s; }
    .logo-ticker-list { animation-duration: 80s; gap: 60px; }
    .cookie-buttons button { font-size: 0.85rem; padding: 7px 15px;}
    .contact-block { flex-direction: column; align-items: center; text-align: center; }
    .contact-icon { margin: 0 auto 10px auto; }
    .layout-sbs { grid-template-columns: 1fr; }
    .layout-sbs.reversed .text-content, .layout-sbs.reversed .image-content { order: initial; }
    .about-section .text-content, .application-support-section .text-content, .about-section .image-content, .application-support-section .image-content { padding: 0; }
    .paywall-overlay { padding: 15px; }
    .paywall-content { padding: 20px; }
    .product-grid-spe.layout-3x2 { grid-template-columns: repeat(2, 1fr); }
    .spe-card-flipper { min-height: 320px; }
    .modal-content { padding: 20px 25px; }
}
/* --- End of File --- */
