/* Product Category Landing Page Styles */
/* Based on Novanta Design System from Screenshots */
.product-category-landing-page {
    /* Primary Brand Colors */
    --primary-color: #003f7f;  /* Deep blue from screenshots */
    --secondary-color: #004686; /* Medium blue */
    --accent-color: #48b885;    /* Green from buttons/icons - matching application detail pages */
    --accent-hover: #3a9b79;    /* Darker green for hover states */
    
    /* Text Colors */
    --text-dark: #1a1a1a;       /* Main heading text */
    --text-color: #333333;      /* Body text */
    --text-light: #6b7280;      /* Subtitle/secondary text */
    --text-muted: #9ca3af;      /* Muted text */
    
    /* Background Colors */
    --light-bg: #f8f9fa;        /* Light gray background */
    --white-bg: #ffffff;        /* Pure white */
    --gray-bg: #f3f4f6;         /* Lighter gray */
    
    /* Border & Shadow */
    --border-color: #e5e7eb;
    --border-light: #f0f0f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    /* Typography */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Open Sans", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.section-padding {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.text-center {
    text-align: center;
}

.section-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Open Sans", sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section - Matching Screenshot Design */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #5a5a5a; /* Fallback gray from screenshot */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    align-items: center;
}

.hero-content {
    color: white;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-btn {
    padding: 16px 32px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 180px;
    text-align: center;
}

.hero-btn-primary {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 4px 14px rgba(72, 184, 133, 0.3);
}

.hero-btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 184, 133, 0.4);
}

.hero-btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.hero-btn-outline:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
    text-decoration: none;
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Products Grid - Matching Screenshot Layout */
.products-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.products-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.product-description {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 28.8px;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.product-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.product-link:hover {
    color: var(--accent-hover);
    text-decoration: none;
    gap: 10px;
}

.product-link::after {
    content: '→';
    transition: transform 0.2s ease;
}

.product-link:hover::after {
    transform: translateX(3px);
}

/* Technology Section */
.technology-content .row {
    align-items: center;
}

.technology-images {
    display: grid;
    gap: 1rem;
}

.tech-image img {
    width: 100%;
    border-radius: 8px;
}

.image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-top: 0.5rem;
}

/* Applications Grid - Based on Screenshot 4-Card Layout */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.application-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
    text-align: left;
}

.application-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(72, 184, 133, 0.2);
}

.application-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.application-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
    line-height: 1.3;
}

/* Features Grid - Three Column Layout from Screenshots */
.features-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--accent-color), #3a9b79);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(72, 184, 133, 0.25);
}

.feature-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Case Studies Grid */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.case-study-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.case-study-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.case-study-content {
    padding: 1.5rem;
}

.case-study-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.case-study-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.case-study-link:hover {
    color: #059669;
    text-decoration: underline;
}

/* Application Tags */
.application-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.application-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.application-tag-blue {
    background: var(--secondary-color);
}

.application-tag-green {
    background: #10b981;
}

/* FAQ Section */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    background: white;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    display: none;
    color: var(--text-color);
    background: white;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question {
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-icon {
    transition: transform 0.3s ease;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Content Grid */
.content-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.content-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.content-card-body {
    padding: 1.5rem;
}

.content-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.content-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.content-link:hover {
    color: #059669;
    text-decoration: underline;
}

/* CTA Section - Matching Screenshot Design */
.cta-section {
    background: linear-gradient(135deg, #003f7f 0%, #005aa7 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10%); }
}

.cta-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.cta-description {
    font-size: 20px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Features Row - Matching Screenshot */
.cta-features {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.cta-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #48b885;
    font-size: 1.5rem;
}

.cta-feature-icon i {
    font-size: 24px;
}

.cta-feature-text {
    font-size: 16px;
    color: #333333;
    font-weight: 500;
    line-height: 1.2;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* CTA Button Styling - Dynamic Based on Backend Configuration */
.btn-primary, .btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-color);
    color: white;
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 16px;
    box-shadow: 0 4px 14px rgba(72, 184, 133, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before, .btn-cta-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before, .btn-cta-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover, .btn-cta-primary:hover {
    background: var(--accent-hover);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(72, 184, 133, 0.4);
}

.btn-secondary, .btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #48b885;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
}

.btn-secondary:hover, .btn-cta-secondary:hover {
    background: #3a9570;
    color: white;
    text-decoration: none;
}

/* Button Icons - Using simple text icons for now */
.btn-icon-contact::before {
    content: "✉";
    margin-right: 4px;
}

.btn-icon-download::before {
    content: "⬇";
    margin-right: 4px;
}

/* CTA Feature Icons - Using simple text icons for now */
.icon-phone::before {
    content: "☎";
    color: #48b885;
}

.icon-lab::before {
    content: "⚗";
    color: #48b885;
}

.icon-experience::before {
    content: "⚡";
    color: #48b885;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-color);
}

.btn-secondary {
    background: var(--accent-color);
    color: white;
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

.btn-technology {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.btn-technology:hover {
    background: #059669;
    border-color: #059669;
    color: white;
    text-decoration: none;
}

/* Technology Section CTA Button */
.technology-section .btn-technology {
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-grid-4,
    .products-grid-3,
    .features-grid-3,
    .applications-grid,
    .content-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Video Modal Styling */
#videoModal .modal-dialog {
    max-width: 90vw;
    width: 90vw;
}

#videoModal .modal-content {
    background: transparent;
    border: none;
    border-radius: 0;
}

#videoModal .modal-header {
    border: none;
    padding: 15px 0;
    position: absolute;
    top: -50px;
    right: 0;
    z-index: 1050;
}

#videoModal .btn-close,
#videoModal .close {
    color: #fff;
    opacity: 1;
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    margin: 0;
}

#videoModal .btn-close:hover,
#videoModal .close:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
}

#videoModal .modal-body {
    padding: 0;
}

#video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

#video-container iframe,
#video-container .wistia_responsive_wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.embed-responsive-16by9 {
    padding-bottom: 56.25%;
}

.embed-responsive-item {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Typography Overrides for better consistency */
h1, .h1 {
    color: #ffffff !important;
    font-size: 72px;
    line-height: 84px;
    font-weight: 700;
    font-family: 'proxima-nova', sans-serif;
}

h2, .h2 {
    font-size: 48px;
    line-height: 60px;
    font-weight: 700;
    font-family: "Proxima Nova", sans-serif;
    color: #333333 !important;
}

.h6, h6 {
    font-size: 24px;
    line-height: 30px;
    font-weight: 700;
}

h1, .h1, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    font-weight: 700;
    font-family: "Proxima Nova", sans-serif;
}

p {
    font-size: 20px !important;
    line-height: 28px !important;
    font-weight: 400 !important;
    font-family: "Open Sans", sans-serif !important;
    color: #8a8f95 !important;
}

/* Hero Title Styling */
.hero-title {
    text-shadow: black 2px 2px;
}

/* Page Banner Content Text Shadow */
.page-banner__content .title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Additional overrides */
[type="button"]:not(:disabled), [type="reset"]:not(:disabled), [type="submit"]:not(:disabled), button:not(:disabled) {
    cursor: pointer;
}

.content-link, .case-study-link {
    margin-top: 20px;
}

.btn .btn-border {
    color: #FFFFFF;
    border-color: #004686;
    background-color: #004686 !important;
}

.faq-question {
    color: #5e6266;
}

.technology-section .btn-technology {
    margin-top: 20px;
    background-color: #10b981 !important;
}