/* Laser Scanhead Landing Page Styles */
/* Based on Novanta Design System and CO2 Laser Template */

/* Color Palette from Screenshots */
:root {
    --scanhead-primary-teal: #48b885;
    --scanhead-primary-blue: #024EA8;
    --scanhead-dark-gray: #5a5a5a;
    --scanhead-text-dark: #2d3748;
    --scanhead-text-gray: #6b7280;
    --scanhead-text-light-gray: #9ca3af;
    --scanhead-border-light: #e5e7eb;
    --scanhead-bg-light: #f9fafb;
    --scanhead-bg-white: #ffffff;
    --scanhead-accent-green: #10b981;
    --scanhead-accent-blue: #3b82f6;
}

.laser-scanhead-landing {
    padding: 0;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Open Sans", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--scanhead-text-dark);
}

/* Common Section Styles */
.scanhead-section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 60px;
}

.scanhead-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.scanhead-section-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.scanhead-section-header .section-subtitle {
    font-size: 18px;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.65;
    font-weight: 400;
    margin-top: 2vw;
}

/* Hero Section - Matching Screenshot Design */
.scanhead-hero-section {
    position: relative;
    padding: 180px 0 140px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--scanhead-dark-gray); /* Fallback from screenshot */
    color: white;
    overflow: hidden;
    min-height: 700px;
    display: flex;
    align-items: center;
    background-image: linear-gradient(135deg, rgba(90, 90, 90, 0.95), rgba(45, 45, 45, 0.95));
}

.scanhead-hero-section.dark-text {
    color: #2d3748;
}

.scanhead-hero-section.light-text {
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay.light-overlay {
    background: rgba(255, 255, 255, 0.3);
}

.hero-overlay.medium-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.hero-overlay.dark-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.scanhead-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    text-align: left;
}

.scanhead-hero-text h1 {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 36px;
    letter-spacing: -0.03em;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    margin-top: -20px;
}

.scanhead-hero-text .hero-subtitle {
    font-size: 1.35rem;
    margin-bottom: 48px;
    opacity: 1;
    max-width: 750px;
    line-height: 1.6;
    font-weight: 400;
    color: white !important;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.scanhead-hero-cta, .scanhead-hero-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
}

.scanhead-hero-cta {
    background: #48b885;
    color: white;
    box-shadow: 0 4px 14px rgba(72, 184, 133, 0.3);
}

.scanhead-hero-cta:hover {
    background: #3a9b79;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(72, 184, 133, 0.4);
}

.scanhead-hero-video-btn {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    border: 2px solid currentColor;
}

.scanhead-hero-video-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Primary Products Section - Based on Screenshot Layout */
.scanhead-primary-products-section {
    padding: 100px 0;
    background: #ffffff;
}

/* Products Section Subtitle Headings - Add bottom margin for proper spacing */
.scanhead-primary-products-section h2 {
    margin-bottom: 20px !important;
}

.scanhead-primary-products-section h3 {
    margin-bottom: 20px !important;
}

.scanhead-primary-products-section .section-subtitle {
    margin-bottom: 20px !important;
}

.scanhead-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 60px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.scanhead-product-card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.scanhead-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: #48b885;
}

.scanhead-product-card .product-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #ffffff;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanhead-product-card .product-image img {
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    object-fit: contain;
    transition: transform 0.3s ease;
    background: white;
    border-radius: 8px;
}

.scanhead-product-card:hover .product-image img {
    transform: scale(1.08);
}

.scanhead-product-card .product-content {
    padding: 28px 30px 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.scanhead-product-card .product-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 14px;
    line-height: 1.35;
    min-height: 60px;
    display: flex;
    align-items: center;
}

/* Fix subscript rendering in product titles and all headings */
.scanhead-product-card .product-title sub,
.product-title sub,
.laser-scanhead-landing h1 sub,
.laser-scanhead-landing h2 sub,
.laser-scanhead-landing h3 sub,
.laser-scanhead-landing h4 sub,
.laser-scanhead-landing h5 sub,
.laser-scanhead-landing h6 sub {
    display: inline !important;
    vertical-align: sub !important;
    font-size: 0.65em !important;
    line-height: 0 !important;
    position: relative !important;
    bottom: auto !important;
    top: 0.1em !important;
}

/* Ensure product titles with subscript maintain proper alignment */
.scanhead-product-card .product-title {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.scanhead-product-card .product-content p {
    color: #6b7280;
    line-height: 1.65;
    margin-bottom: 28px;
    font-size: 15px;
    flex-grow: 1;
    min-height: 80px;
}

.scanhead-product-card .product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #48b885;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

.scanhead-product-card .product-link:hover {
    color: #3a9b79;
    gap: 12px;
}

.scanhead-product-card .product-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.scanhead-product-card .product-link:hover::after {
    transform: translateX(4px);
}

/* Products Section CTA Button */
.products-section-cta {
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.products-cta-btn {
    display: inline-block;
    padding: 16px 32px;
    background: #48b885;
    color: white !important;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(72, 184, 133, 0.3);
}

.products-cta-btn:hover {
    background: #3a9b79;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(72, 184, 133, 0.4);
    color: white !important;
    text-decoration: none;
}

/* Specifications Section */
.scanhead-specs-section {
    padding: 80px 0;
    background: white;
}

.scanhead-specs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.scanhead-specs-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.scanhead-specs-text h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 20px;
}

.scanhead-specs-list {
    list-style: none;
    padding: 0;
}

.scanhead-specs-list li {
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scanhead-specs-list li:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: #374151;
}

.spec-value {
    color: #3b82f6;
    font-weight: 500;
}

/* CTA Section */
.scanhead-cta-section {
    padding: 80px 0;
    background: #f8fafc;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--scanhead-text-dark); /* Default text color */
}

.cta-content {
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.cta-button-wrapper {
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

/* CTA Section Overlay */
.scanhead-cta-section .cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* Allow clicks to pass through to content */
}

.scanhead-cta-section .cta-overlay.light-overlay {
    background: rgba(255, 255, 255, 0.85);
}

.scanhead-cta-section .cta-overlay.medium-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.scanhead-cta-section .cta-overlay.dark-overlay {
    background: rgba(0, 0, 0, 0.7);
}

/* Ensure content is above overlay */
.scanhead-cta-section .scanhead-section-container {
    position: relative;
    z-index: 2;
}

/* Text color classes for CTA section */
.scanhead-cta-section.light-text h2,
.scanhead-cta-section.light-text .section-subtitle,
.scanhead-cta-section.light-text .cta-content {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.scanhead-cta-section.dark-text h2,
.scanhead-cta-section.dark-text .section-subtitle,
.scanhead-cta-section.dark-text .cta-content {
    color: var(--scanhead-text-dark);
}

/* Ensure button visibility with background images */
.scanhead-cta-section.light-text .scanhead-cta-primary {
    background: var(--scanhead-primary-teal);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.scanhead-cta-section.light-text .scanhead-cta-primary:hover {
    background: #3a9b79;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Technology Section */
.scanhead-technology-section {
    padding: 80px 0;
    background: white;
}

.scanhead-technology-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.scanhead-technology-item:last-child {
    margin-bottom: 0;
}

/* Default layout: content left, image right */
.scanhead-technology-item.content-left {
    grid-template-columns: 1fr 1fr;
}

.scanhead-technology-item.content-left .tech-content {
    order: 1;
}

.scanhead-technology-item.content-left .tech-image {
    order: 2;
}

/* Alternate layout: image left, content right */
.scanhead-technology-item.content-right,
.scanhead-technology-item.content_right,
.scanhead-technology-item.image-left {
    grid-template-columns: 1fr 1fr;
}

.scanhead-technology-item.content-right .tech-content,
.scanhead-technology-item.content_right .tech-content,
.scanhead-technology-item.image-left .tech-content {
    order: 2;
}

.scanhead-technology-item.content-right .tech-image,
.scanhead-technology-item.content_right .tech-image,
.scanhead-technology-item.image-left .tech-image {
    order: 1;
}

.scanhead-technology-item .tech-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    line-height: 1.2;
}

.scanhead-technology-item .tech-subtitle {
    font-size: 1.125rem;
    color: #718096;
    margin-bottom: 24px;
}

.scanhead-technology-item .tech-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 30px;
}

.scanhead-technology-item .tech-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #38a169;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.scanhead-technology-item .tech-button:hover {
    background: #2f855a;
    transform: translateY(-2px);
}

.scanhead-technology-item .tech-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Applications Section - Matching Screenshot Design with Circular Icons */
.scanhead-applications-section {
    padding: 100px 0;
    background: #f8f9fa;
    position: relative; /* Position relative for overlay positioning */
}

/* Text color classes for applications section - ONLY section headers */
.scanhead-applications-section.light-text .scanhead-section-header h2,
.scanhead-applications-section.light-text .scanhead-section-header .section-subtitle, .scanhead-applications-section.light-text .scanhead-section-header .section-subtitle p {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.scanhead-applications-section.dark-text .scanhead-section-header h2,
.scanhead-applications-section.dark-text .scanhead-section-header .section-subtitle,
.scanhead-applications-section.dark-text .scanhead-section-header .section-subtitle p
{
    color: #333333 !important;
}

/* Overlay effects for applications section */
.scanhead-applications-section .apps-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.scanhead-applications-section .light-overlay {
    background-color: rgba(255, 255, 255, 0.3);
}

.scanhead-applications-section .medium-overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

.scanhead-applications-section .dark-overlay {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Ensure content is above overlay */
.scanhead-applications-section .scanhead-section-container {
    position: relative;
    z-index: 2;
}

.scanhead-applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 60px;
    align-items: stretch;
}

/* Application Cards Title - above the grid */
.scanhead-apps-cards-title {
    text-align: center;
    margin-top: 40px;
    margin-bottom: -20px;
    position: relative;
    z-index: 2;
}

.scanhead-apps-cards-title h2,
.scanhead-apps-cards-title h3 {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.scanhead-apps-cards-title p {
    font-size: 16px;
    color: #6b7280;
    margin-top: 12px;
    line-height: 1.6;
}

/* 4-column grid for drilling applications */
.scanhead-applications-grid.four-column {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.scanhead-application-item {
    background: white !important;
    padding: 48px 40px;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    display: block;
}

/* Style for application cards that are links */
a.scanhead-application-item,
a.scanhead-application-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

a.scanhead-application-item:hover,
a.scanhead-application-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Application cards ALWAYS use dark text regardless of section text color */
.scanhead-application-item h3,
a.scanhead-application-item h3,
.scanhead-applications-section.light-text .scanhead-application-item h3,
.scanhead-applications-section.light-text a.scanhead-application-item h3,
.scanhead-applications-section.dark-text .scanhead-application-item h3,
.scanhead-applications-section.dark-text a.scanhead-application-item h3 {
    color: var(--scanhead-text-dark) !important;
}

.scanhead-application-item p,
a.scanhead-application-item p,
.scanhead-applications-section.light-text .scanhead-application-item p,
.scanhead-applications-section.light-text a.scanhead-application-item p,
.scanhead-applications-section.dark-text .scanhead-application-item p,
.scanhead-applications-section.dark-text a.scanhead-application-item p {
    color: var(--scanhead-text-gray) !important;
}

/* Application card icons maintain their teal color */
.scanhead-application-item .application-icon,
.scanhead-applications-section.light-text .scanhead-application-item .application-icon,
.scanhead-applications-section.dark-text .scanhead-application-item .application-icon {
    background: var(--scanhead-primary-teal) !important;
}

/* Apply text color to cards title (between header and cards) */
.scanhead-applications-section.light-text .scanhead-apps-cards-title h2,
.scanhead-applications-section.light-text .scanhead-apps-cards-title h3 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.scanhead-applications-section.light-text .scanhead-apps-cards-title p {
    color: #ffffff !important;
    opacity: 0.95;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.scanhead-applications-section.dark-text .scanhead-apps-cards-title h2,
.scanhead-applications-section.dark-text .scanhead-apps-cards-title h3 {
    color: #333333 !important;
}

.scanhead-applications-section.dark-text .scanhead-apps-cards-title p {
    color: #6b7280 !important;
}

/* Compact cards for 4-column layout */
.four-column .scanhead-application-item {
    padding: 36px 28px;
    text-align: center;
}

.scanhead-application-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    border-color: var(--scanhead-primary-teal);
    cursor: pointer;
}

/* Circular icon background matching screenshots */
.scanhead-application-item .application-icon {
    width: 80px;
    height: 80px;
    background: var(--scanhead-primary-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    box-shadow: 0 8px 20px rgba(72, 184, 133, 0.25);
    position: relative;
}

/* Smaller icons for 4-column layout */
.four-column .scanhead-application-item .application-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
}

.scanhead-application-item .application-icon img,
.scanhead-application-item .application-icon i {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
    font-size: 32px;
    color: white;
}

.four-column .scanhead-application-item .application-icon img,
.four-column .scanhead-application-item .application-icon i {
    width: 32px;
    height: 32px;
    font-size: 28px;
}

.scanhead-application-item h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--scanhead-text-dark) !important;
    margin-bottom: 20px;
    line-height: 1.3;
}

.four-column .scanhead-application-item h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.scanhead-application-item p {
    color: var(--scanhead-text-gray) !important;
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 16px;
}

.four-column .scanhead-application-item p {
    font-size: 15px;
    margin-bottom: 20px;
}

.scanhead-application-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scanhead-application-item ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #718096 !important;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.scanhead-application-item ul li::before {
    content: '✓';
    color: #48b885;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

/* Benefits Section - Matching Screenshot Design */
.scanhead-benefits-section {
    padding: 100px 0;
    background: white;
}

.scanhead-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.scanhead-benefit-card {
    background: white;
    padding: 40px 30px;
    border-radius: 6px;
    border: 1px solid var(--scanhead-border-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scanhead-benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    border-color: var(--scanhead-primary-teal);
}

.scanhead-benefit-card .benefit-icon {
    width: 72px;
    height: 72px;
    background: var(--scanhead-primary-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 20px rgba(72, 184, 133, 0.25);
    position: relative;
}

.scanhead-benefit-card .benefit-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--scanhead-primary-teal);
    opacity: 0.15;
    transform: scale(1.3);
}

.scanhead-benefit-card .benefit-icon img,
.scanhead-benefit-card .benefit-icon i {
    width: 36px;
    height: 36px;
    filter: brightness(0) invert(1);
    font-size: 32px;
    color: white;
    position: relative;
    z-index: 1;
}

.scanhead-benefit-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--scanhead-text-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.scanhead-benefit-card p {
    color: var(--scanhead-text-gray);
    line-height: 1.7;
    font-size: 16px;
}

/* Features Section - Inline Icon Layout */
.scanhead-features-section {
    padding: 80px 0;
    background: white;
}

.scanhead-features-card {
    background: white;
    border-radius: 12px;
    padding: 60px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    max-width: 1000px;
    margin: 0 auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle hover effect for features card */
.scanhead-features-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--scanhead-primary-teal);
}

.scanhead-features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.scanhead-feature-item {
    display: flex;
    align-items: flex-start; /* Changed to flex-start for better control */
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.scanhead-feature-item:last-child {
    border-bottom: none;
}

/* Small inline icons - 30px as requested */
.scanhead-feature-item .feature-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--scanhead-primary-teal);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(72, 184, 133, 0.25);
    /* Align icon with first line of text */
    margin-top: 2px; /* Fine-tune alignment with text baseline */
}

.scanhead-feature-item .feature-icon img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.scanhead-feature-item .feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scanhead-feature-item .feature-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--scanhead-text-dark);
    margin: 0;
    line-height: 1.4;
}

.scanhead-feature-item .feature-content p {
    font-size: 15px;
    color: var(--scanhead-text-gray);
    margin: 0;
    line-height: 1.6;
}

/* Responsive adjustments for features section */
@media (max-width: 768px) {
    .scanhead-features-card {
        padding: 40px 24px;
    }

    .scanhead-features-list {
        gap: 20px;
    }

    .scanhead-feature-item {
        padding: 12px 0;
    }

    .scanhead-feature-item .feature-content h3 {
        font-size: 16px;
    }

    .scanhead-feature-item .feature-content p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .scanhead-features-card {
        padding: 32px 16px;
    }

    .scanhead-feature-item {
        gap: 12px;
    }
}

/* Success Stories Section - Updated to match Related Content Cards */
.scanhead-success-stories-section {
    padding: 80px 0;
    background: #f8f9fa;
}

/* Ensure consistent header styling with Related Content */
.scanhead-success-stories-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.scanhead-success-stories-section .section-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.scanhead-success-stories-section .section-subtitle {
    font-size: 18px;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.scanhead-success-stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
    margin-top: 50px;
}

/* Match Related Content Card Styling */
.scanhead-success-story-card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.scanhead-success-story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--scanhead-primary-teal);
}

/* Image Container - Matching Related Content */
.scanhead-success-story-card .story-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f5f5f5;
}

.scanhead-success-story-card .story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.scanhead-success-story-card:hover .story-image img {
    transform: scale(1.05);
}

/* Content Container - Matching Related Content */
.scanhead-success-story-card .story-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Optional: Add story type indicator */
.scanhead-success-story-card .story-type {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--scanhead-primary-teal);
    margin-bottom: 12px;
}

.scanhead-success-story-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.scanhead-success-story-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.scanhead-success-story-card .story-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--scanhead-primary-teal);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    margin-top: auto;
}

.scanhead-success-story-card .story-link:hover {
    color: #3a9b79;
    gap: 10px;
}

.scanhead-success-story-card .story-link::after {
    content: '→';
    transition: transform 0.2s ease;
    display: inline-block;
}

.scanhead-success-story-card .story-link:hover::after {
    transform: translateX(3px);
}

/* Related Content Section */
.scanhead-related-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.scanhead-related-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.scanhead-related-section .section-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.scanhead-related-section .section-subtitle {
    font-size: 18px;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.related-content-grid {
    display: grid;
    gap: 30px;
    margin-top: 50px;
}

.related-content-grid.related-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.related-content-grid.related-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
}

.related-content-grid.related-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.related-content-item {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.related-content-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--scanhead-primary-teal);
}

.related-content-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f5f5f5;
}

.related-content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-content-item:hover .related-content-image img {
    transform: scale(1.05);
}

.related-content-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.related-content-type {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--scanhead-primary-teal);
    margin-bottom: 12px;
}

.related-content-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.related-content-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-content-title a:hover {
    color: var(--scanhead-primary-teal);
}

.related-content-excerpt {
    color: #6b7280;
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.related-content-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--scanhead-primary-teal);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    margin-top: auto;
}

.related-content-link:hover {
    color: #3a9b79;
    gap: 10px;
}

.related-content-link .arrow {
    transition: transform 0.2s ease;
    display: inline-block;
}

.related-content-link:hover .arrow {
    transform: translateX(3px);
}

/* FAQ Section - Matching Application Detail Page Styling */
.scanhead-faq-section {
    padding: 80px 0;
    background: white;
}

.scanhead-faq-accordion {
    max-width: 1150px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color, #d0d5db);
    margin-bottom: 0;
    margin: 20px 0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-dark, #5e6266);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-color, #00B189);
}

.faq-toggle {
    position: relative;
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s ease;
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 1;
    text-align: center;
}

.faq-question[aria-expanded="true"] .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px 20px 20px;
    color: var(--text-light, #8A8F95);
    line-height: 1.6;
    display: none; /* Hidden by default, controlled by jQuery */
    /* Same left/right padding as question for consistent alignment */
}

.faq-answer.active {
    display: block;
}

/* Optional: Add smooth content appearance */
.faq-answer p {
    margin-bottom: 15px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Final CTA Section */
.scanhead-final-cta-section {
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    text-align: center;
    color: white;
}

.scanhead-final-cta-section .cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.scanhead-final-cta-section .cta-overlay.light-overlay {
    background: rgba(255, 255, 255, 0.3);
}

.scanhead-final-cta-section .cta-overlay.medium-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.scanhead-final-cta-section .cta-overlay.dark-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.scanhead-final-cta-section .scanhead-section-container {
    position: relative;
    z-index: 2;
}

.scanhead-final-cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.scanhead-final-cta-section .section-subtitle {
    font-size: 1.125rem;
    color: white !important;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.scanhead-final-cta-section .cta-content {
    color: white !important;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Ensure all text elements within final CTA are white */
.scanhead-final-cta-section .cta-content p,
.scanhead-final-cta-section .cta-content span,
.scanhead-final-cta-section .cta-content div,
.scanhead-final-cta-section .cta-content * {
    color: white !important;
}

.final-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Additional CTA Styling */
.scanhead-cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.scanhead-cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.scanhead-cta-section .section-subtitle {
    position: relative;
    z-index: 2;
}

.scanhead-cta-section p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.scanhead-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.scanhead-cta-primary, .scanhead-cta-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.scanhead-cta-primary {
    background: var(--scanhead-primary-teal);
    color: white;
    box-shadow: 0 4px 12px rgba(72, 184, 133, 0.3);
}

.scanhead-cta-primary:hover {
    background: #3a9b79;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 184, 133, 0.4);
}

.scanhead-cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.scanhead-cta-secondary:hover {
    background: white;
    color: var(--scanhead-primary-teal);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .scanhead-section-container {
        max-width: 100%;
        padding: 0 40px;
    }

    .scanhead-applications-grid.four-column {
        grid-template-columns: repeat(2, 1fr);
    }

    .scanhead-apps-cards-title h2,
    .scanhead-apps-cards-title h3 {
        font-size: 28px;
    }

    .scanhead-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .related-content-grid.related-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .scanhead-success-stories-grid,
    .related-content-grid.related-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .scanhead-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .scanhead-section-container {
        padding: 0 24px;
    }

    .scanhead-hero-section {
        padding: 100px 0;
        min-height: 500px;
    }

    .scanhead-hero-content {
        text-align: left;
    }

    .scanhead-specs-content,
    .scanhead-technology-item {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .scanhead-products-grid {
        grid-template-columns: 1fr;
    }

    .scanhead-hero-text h1 {
        font-size: 42px;
        margin-bottom: 24px;
    }

    .scanhead-hero-text .hero-subtitle {
        font-size: 18px;
        margin-bottom: 32px;
    }

    .scanhead-section-header h2 {
        font-size: 36px;
    }

    .scanhead-section-header .section-subtitle {
        font-size: 18px;
    }

    .scanhead-applications-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 24px;
    }

    .scanhead-applications-grid.four-column {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .scanhead-benefits-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .scanhead-technology-item.content_right .tech-content,
    .scanhead-technology-item.content_right .tech-image {
        order: unset;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .scanhead-cta-buttons,
    .final-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .scanhead-application-item,
    .four-column .scanhead-application-item {
        padding: 36px 28px;
        text-align: left;
    }

    .four-column .scanhead-application-item .application-icon {
        margin: 0 0 20px 0;
    }

    .related-content-grid.related-grid-2,
    .related-content-grid.related-grid-3,
    .related-content-grid.related-grid-4,
    .scanhead-success-stories-grid {
        grid-template-columns: 1fr;
    }

    .scanhead-related-section,
    .scanhead-success-stories-section {
        padding: 60px 0;
    }

    .scanhead-related-section .section-title {
        font-size: 32px;
    }

    .scanhead-related-section .section-subtitle,
    .scanhead-success-stories-section .section-subtitle {
        font-size: 16px;
    }

    .scanhead-success-stories-section .section-title {
        font-size: 32px;
    }

    .scanhead-success-story-card .story-content,
    .related-content-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .scanhead-section-container {
        padding: 0 16px;
    }

    .scanhead-hero-section {
        padding: 80px 0;
        min-height: 450px;
    }

    .scanhead-primary-products-section,
    .scanhead-cta-section,
    .scanhead-technology-section,
    .scanhead-applications-section,
    .scanhead-specs-section,
    .scanhead-benefits-section,
    .scanhead-success-stories-section,
    .scanhead-faq-section,
    .scanhead-final-cta-section {
        padding: 60px 0;
    }

    .scanhead-hero-text h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .scanhead-hero-text .hero-subtitle {
        font-size: 16px;
    }

    .scanhead-section-header h2 {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .scanhead-section-header .section-subtitle {
        font-size: 16px;
    }

    .scanhead-section-header {
        margin-bottom: 40px;
    }

    .scanhead-apps-cards-title h2,
    .scanhead-apps-cards-title h3 {
        font-size: 24px;
    }

    .scanhead-apps-cards-title p {
        font-size: 14px;
    }

    .scanhead-application-item,
    .scanhead-benefit-card {
        padding: 30px 20px;
    }

    /* Success story cards don't need padding adjustment as content is within .story-content */
    .scanhead-success-story-card .story-content {
        padding: 16px;
    }

    .scanhead-application-item h3,
    .scanhead-benefit-card h3 {
        font-size: 20px;
    }

    .scanhead-application-item p,
    .scanhead-benefit-card p {
        font-size: 14px;
    }

    .scanhead-technology-item {
        margin-bottom: 60px;
    }

    .scanhead-applications-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }

    .scanhead-benefits-grid {
        gap: 20px;
        margin-top: 40px;
    }

    .scanhead-application-item .application-icon,
    .scanhead-benefit-card .benefit-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .scanhead-application-item .application-icon img,
    .scanhead-benefit-card .benefit-icon img {
        width: 30px;
        height: 30px;
    }

    .scanhead-cta-primary,
    .scanhead-cta-secondary {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
        max-width: 260px;
    }
}

.lefty {
    display: inline-block;
    width: 45%;
    float: left;
}
.righty {
    display: inline-block;
    width: 45%;
    float: right;
}

/* ========================================
   Technical Specifications Section with Nested Repeater
   ======================================== */

.scanhead-specs-section {
    padding: 80px 0;
    background: white;
}

.scanhead-specs-section .spec-item-group {
    margin-bottom: 80px;
}

.scanhead-specs-section .spec-item-group:last-child {
    margin-bottom: 0;
}

/* Specification Group Header */
.scanhead-specs-section .spec-group-header {
    margin-bottom: 50px;
}

/* Specification Group Title - Add margin-bottom for spacing before subtitle */
.scanhead-specs-section .spec-group-header h2,
.scanhead-specs-section .spec-group-header h3,
.scanhead-specs-section .spec-group-header .spec-item-title {
    margin-bottom: 20px;
}

/* Specification Group Subtitle */
.scanhead-specs-section .spec-group-header .spec-item-subtitle,
.scanhead-specs-section .spec-group-header .section-subtitle,
.scanhead-specs-section .spec-group-header p {
    margin-top: 0;
}

/* Product Cards Grid for Specifications */
.scanhead-specs-section .spec-products-grid {
    display: grid;
    gap: 28px;
    margin-bottom: 40px;
}

/* Grid column variations */
.scanhead-specs-section .spec-products-grid.products-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.scanhead-specs-section .spec-products-grid.products-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.scanhead-specs-section .spec-products-grid.products-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Specification Product Card - Matching Regular Product Cards */
.scanhead-specs-section .spec-product-card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.scanhead-specs-section .spec-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: #48b885;
}

/* Specification Product Image - Matching Regular Product Cards */
.scanhead-specs-section .spec-product-card .spec-product-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #ffffff;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanhead-specs-section .spec-product-card .spec-product-image img {
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    object-fit: contain;
    transition: transform 0.3s ease;
    background: white;
    border-radius: 8px;
}

.scanhead-specs-section .spec-product-card:hover .spec-product-image img {
    transform: scale(1.08);
}

/* Specification Product Content - Matching Regular Product Cards */
.scanhead-specs-section .spec-product-card .spec-product-content {
    padding: 28px 30px 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Specification Product Title - Matching Regular Product Cards */
.scanhead-specs-section .spec-product-card .spec-product-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 14px;
    line-height: 1.35;
    min-height: 60px;
    display: flex;
    align-items: center;
}

/* Legacy support for old class names if they exist */
.scanhead-specs-section .spec-product-card .product-image {
    aspect-ratio: 10/10;
    overflow: hidden;
    background: #ffffff;
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanhead-specs-section .spec-product-card .product-image img {
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    object-fit: contain;
    transition: transform 0.3s ease;
    background: white;
    border-radius: 8px;
}

.scanhead-specs-section .spec-product-card:hover .product-image img {
    transform: scale(1.08);
}

.scanhead-specs-section .spec-product-card .product-content {
    padding: 28px 30px 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.scanhead-specs-section .spec-product-card .product-content h3,
.scanhead-specs-section .spec-product-card .product-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 14px;
    line-height: 1.35;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.scanhead-specs-section .spec-product-card .product-content p {
    color: #6b7280;
    line-height: 1.65;
    margin-bottom: 28px;
    font-size: 15px;
    flex-grow: 1;
    min-height: 80px;
}

.scanhead-specs-section .spec-product-card .product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #48b885;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

.scanhead-specs-section .spec-product-card .product-link:hover {
    color: #3a9b79;
    gap: 12px;
}

.scanhead-specs-section .spec-product-card .product-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.scanhead-specs-section .spec-product-card .product-link:hover::after {
    transform: translateX(4px);
}

/* Compare Button Styling */
.scanhead-specs-section .product-actions {
    margin-top: auto;
    padding-top: 20px;
}

.scanhead-specs-section .btn-compare {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--scanhead-primary-teal);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.scanhead-specs-section .btn-compare:hover {
    background: #3a9b79;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(72, 184, 133, 0.4);
}

/* Specification Modal Styles - Enhanced with bigger size and mobile scroll support */
.spec-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spec-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.spec-modal-container {
    position: relative;
    width: 95%;
    max-width: 1400px; /* Increased from 1200px for bigger modal */
    height: 85vh; /* Set explicit height for better control */
    max-height: 900px; /* Maximum height on large screens */
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 20px; /* Add margin for safety on edges */
}

.spec-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    border-bottom: 1px solid #e8e8e8;
    background: #f8f9fa;
    flex-shrink: 0; /* Prevent header from shrinking */
}

.spec-modal-header h3 {
    font-size: 32px; /* Increased from 28px */
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.spec-modal-close {
    background: none;
    border: none;
    font-size: 36px; /* Increased from 32px */
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s;
    width: 44px; /* Increased from 40px */
    height: 44px; /* Increased from 40px */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.spec-modal-close:hover {
    color: #1a1a1a;
    background: rgba(0, 0, 0, 0.05);
}

.spec-modal-body {
    flex: 1;
    overflow-y: auto; /* Enable vertical scroll */
    overflow-x: hidden; /* Hide horizontal scroll */
    padding: 50px; /* Increased from 40px */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    overscroll-behavior: contain; /* Prevent scroll chaining */
}

/* Modal Content Styling - Enhanced for bigger images and better layout */
.modal-spec-content {
    color: var(--scanhead-text-dark);
    max-width: 100%;
}

/* Enhanced image sizing within modal */
.modal-spec-content img,
.spec-modal-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Larger images for comparison tables/grids */
.modal-spec-content .comparison-image,
.modal-spec-content .product-comparison img {
    max-width: 800px; /* Allow images to be much bigger */
    width: 100%;
}

.modal-spec-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    overflow-x: auto; /* Allow horizontal scroll on tables if needed */
    display: block;
}

.modal-spec-content table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #e8e8e8;
    color: #1a1a1a;
    white-space: nowrap; /* Prevent text wrapping in headers */
}

.modal-spec-content table td {
    padding: 12px 15px;
    border: 1px solid #e8e8e8;
}

.modal-spec-content table tr:hover {
    background: #f8f9fa;
}

.modal-spec-content h3,
.modal-spec-content h4 {
    margin-top: 35px;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-size: 24px; /* Bigger headings */
}

.modal-spec-content h4 {
    font-size: 20px;
}

.modal-spec-content ul,
.modal-spec-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.modal-spec-content li {
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 16px; /* Slightly larger text */
}

.modal-spec-content p {
    line-height: 1.7;
    font-size: 16px;
    margin-bottom: 16px;
}

/* Responsive table wrapper for mobile */
.modal-spec-content .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -20px; /* Extend to edges on mobile */
    padding: 0 20px;
}

/* Body scroll lock when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Responsive Design for Specifications */
@media (max-width: 1200px) {
    .scanhead-specs-section .spec-products-grid.products-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .scanhead-specs-section .spec-products-grid.products-grid-4,
    .scanhead-specs-section .spec-products-grid.products-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .spec-modal-container {
        width: 95%;
        max-height: 95vh;
    }

    .spec-modal-header {
        padding: 20px 25px;
    }

    .spec-modal-body {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .scanhead-specs-section .spec-products-grid.products-grid-4,
    .scanhead-specs-section .spec-products-grid.products-grid-3,
    .scanhead-specs-section .spec-products-grid.products-grid-2 {
        grid-template-columns: 1fr;
    }

    .scanhead-specs-section .spec-product-card .spec-product-image,
    .scanhead-specs-section .spec-product-card .product-image {
        aspect-ratio: 16/10;
        padding: 15px;
    }

    .scanhead-specs-section .spec-product-card .spec-product-content,
    .scanhead-specs-section .spec-product-card .product-content {
        padding: 20px;
    }

    .scanhead-specs-section .spec-product-card .spec-product-title,
    .scanhead-specs-section .spec-product-card .product-title,
    .scanhead-specs-section .spec-product-card .product-content h3 {
        font-size: 18px;
        min-height: auto;
    }

    .scanhead-specs-section .spec-product-card .product-content p {
        min-height: auto;
    }

    /* Modal adjustments for tablets */
    .spec-modal-container {
        width: 98%;
        height: 90vh;
        max-height: none;
        margin: 10px;
    }

    .spec-modal-header {
        padding: 20px;
    }

    .spec-modal-header h3 {
        font-size: 24px;
    }

    .spec-modal-body {
        padding: 20px;
    }

    .spec-modal-close {
        font-size: 30px;
        width: 40px;
        height: 40px;
    }

    /* Ensure modal images are responsive */
    .modal-spec-content img,
    .spec-modal-body img {
        max-width: 100%;
    }

    .modal-spec-content .comparison-image,
    .modal-spec-content .product-comparison img {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .scanhead-specs-section {
        padding: 60px 0;
    }

    .scanhead-specs-section .spec-item-group {
        margin-bottom: 60px;
    }

    .scanhead-specs-section .btn-compare {
        font-size: 13px;
        padding: 10px 20px;
    }

    /* Modal adjustments for mobile */
    .spec-modal-container {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .spec-modal-header {
        padding: 15px;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .spec-modal-header h3 {
        font-size: 20px;
    }

    .spec-modal-body {
        padding: 15px;
        padding-bottom: 30px; /* Extra space at bottom for easier scrolling */
    }

    .spec-modal-close {
        font-size: 28px;
        width: 36px;
        height: 36px;
    }

    /* Optimize content for mobile */
    .modal-spec-content h3,
    .modal-spec-content h4 {
        font-size: 20px;
        margin-top: 25px;
    }

    .modal-spec-content h4 {
        font-size: 18px;
    }

    .modal-spec-content p,
    .modal-spec-content li {
        font-size: 14px;
    }

    /* Tables should be scrollable on mobile */
    .modal-spec-content table {
        font-size: 14px;
    }

    .modal-spec-content table th,
    .modal-spec-content table td {
        padding: 10px;
    }
}