:root {
    --primary-blue: #0056b3; /* A more corporate blue */
    --light-blue: #e0f2f7; /* Very light blue for backgrounds */
    --dark-grey: #333;
    --medium-grey: #555;
    --light-grey: #DDF9F1; /* Changed from #f4f4f4 */
    --accent-color: #007bff; /* Original accent for highlights */
    --gradient-start: #DDF9F1;
    --gradient-middle: #e8fcf7;
    --gradient-end: #f2fdfb;
}

* {
    box-sizing: border-box;
}

/* Basic Reset & Body Style */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* Changed font to Roboto */
    color: var(--dark-grey);
    background-color: var(--light-grey); /* Ensure fallback */
}

/* Fade In Animation Classes */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Section Titles Styling - Box Overlay */
section h2, .testimonials-title-col h2 {
    background-color: #fff;
    padding: 10px 30px; /* Reduced padding */
    border-radius: 50px; /* Pill shape for a modern look */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: inline-block;
    width: fit-content;
    margin: 0 auto 30px auto; /* Reduced bottom margin */
    color: var(--primary-blue); /* Highlight text color */
    font-weight: 700;
    font-size: 2em; /* Explicitly set smaller font size */
}

/* Testimonial Section Layout */
#testimonials-page {
    padding: 60px 0;
    background: var(--light-grey);
    overflow: hidden;
}

.testimonials-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px;
    align-items: center; /* Vertically center the title against the grid */
}

.testimonials-title-col {
    flex: 0 0 250px;
    text-align: left; /* Keep left aligned within the column */
}

/* Ensure the title inside the flex column respects the column's alignment */
.testimonials-title-col h2 {
    margin: 0; /* Reset margin for this specific context */
}

.testimonials-grid-col {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Smaller cards to fit more */
    gap: 20px; /* Reduced gap */
}

/* Updated Testimonial Card for Grid */
.testimonial-card-grid {
    background-color: #fff;
    border-radius: 12px;
    padding: 15px; /* Reduced padding */
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    opacity: 0; /* For slide-in animation */
    transform: translateX(50px);
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-card-grid.slide-in {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-card-grid h4 {
    color: var(--primary-blue);
    margin: 0 0 5px 0;
    font-size: 1.1em; /* Slightly smaller */
}

.testimonial-card-grid p.role {
    font-size: 0.85em; /* Smaller role text */
    color: #777;
    margin-bottom: 10px;
    font-weight: 500;
}

.testimonial-card-grid p.quote {
    font-style: italic;
    color: #555;
    line-height: 1.4;
    font-size: 0.9em; /* Smaller quote text */
    margin: 0;
}

@media (max-width: 900px) {
    .testimonials-container {
        flex-direction: column;
    }
    .testimonials-title-col {
        text-align: center;
        width: 100%;
        margin-bottom: 30px;
        position: static;
    }
    /* Reset title margin for mobile centering */
    .testimonials-title-col h2 {
        margin: 0 auto;
    }
}

.animated-bg {
    background: linear-gradient(270deg, var(--gradient-start), var(--gradient-middle), var(--gradient-end));
    background-size: 600% 600%;
    animation: gradientAnimation 30s ease-in-out infinite;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif; /* Keep Playfair Display for headings, but can be adjusted */
    color: var(--dark-grey);
}

/* Header Styling */
header {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Softer, more professional shadow */
    padding: 0.5rem 2rem; /* Reduced padding */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

body {
    padding-top: 60px; /* Reduced to match new header height */
}

.navbar {
    display: flex;
    justify-content: space-between; /* Space between logo and nav links */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Grouping nav links together */
.nav-links {
    display: flex;
    gap: 25px; /* Reduced gap between links */
}

.header-logo {
    height: 40px; /* Reduced logo size */
}

.navbar a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.navbar a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.navbar a:hover:after {
    width: 100%;
}

.navbar a:hover {
    color: #007bff; /* Example hover color */
}

/* Removed nav-left, nav-right, nav-center and slide-in animations */
.nav-left, .nav-right {
    display: flex;
    gap: 35px;
}

.nav-left a, .nav-right a {
    opacity: 1; /* Ensure links are visible without animation */
    transform: none;
    animation: none;
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeOut 1s ease-out 2.5s forwards; /* Starts fading out after 2.5s */
}

#splash-logo {
    width: 250px; /* Adjust size as needed */
    animation: pulse 1.5s infinite ease-in-out;
}

/* Main Content Area */
#main-content {
    opacity: 0;
    padding: 0;
    height: 100vh; /* Reverted to original height */
    overflow: hidden;
    animation: fadeIn 1s ease-in 3s forwards; /* Starts fading in after splash screen */
}

/* --- Video Carousel --- */
.video-carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.video-carousel {
    display: flex;
    width: 600%; /* 100% for each of the 6 slides */
    height: 100%;
    transition: transform 1s ease-in-out;
}

.video-slide {
    width: 100%;
    height: 100%;
    position: relative;
}

.video-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    text-align: center;
}

.video-overlay h1 {
    font-size: 4rem;
    font-family: 'Playfair Display', serif;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    color: white;
}

.video-slide.active .video-overlay h1 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}



.product-center-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Larger cards */
    gap: 30px; /* Increased gap */
    width: 95%;
    max-width: 1200px;
    margin: 20px auto;
    justify-content: center;
}

.product-center-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--dark-grey);
    padding: 25px; /* Increased padding */
}

.product-center-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-center-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 5px;
}

.product-center-card h3 {
    font-size: 1.5em;
    margin-bottom: 12px;
    color: var(--dark-grey);
}

/* Tabbed Interface Styling */
.tab-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 10px 20px;
    border: 1px solid var(--primary-blue);
    background-color: transparent;
    color: var(--primary-blue);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active,
.tab-button:hover {
    background-color: var(--primary-blue);
    color: #fff;
}

.tab-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Applications Page Styling */
#applications-page {
    width: 100%;
    padding: 30px 0; /* More compact */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: var(--light-grey);
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Smaller min-width */
    gap: 20px; /* Reduced gap */
    width: 95%; /* Increased width usage */
    max-width: 1200px;
    margin: 15px auto; /* Center the grid */
    justify-content: center;
}

.application-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.application-card {
    background-color: #fff;
    border-radius: 8px; /* Slightly less rounded */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05); /* Softer shadow with a border effect */
    margin: 0; /* Removed margin, using grid gap instead */
    padding: 15px; /* Reduced padding */
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer; /* Indicate clickable */
    text-decoration: none; /* Remove underline for anchor cards */
    color: var(--dark-grey); /* Ensure text color is inherited properly */
}

.application-card:hover {
    background: linear-gradient(135deg, #00b347, #0066cc); /* Smoother green to blue gradient */
    color: #fff;
    transform: translateY(-8px); /* More pronounced lift */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

.application-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 5px; /* Softer corners for images */
}

.application-card h3 {
    font-size: 1.5em; /* Adjusted font size */
    margin-bottom: 12px;
    color: var(--dark-grey);
}

.application-card:hover h3 {
    color: #fff; /* White text on hover */
}



.demarcation-line {
    width: 80%; /* Slightly narrower */
    height: 3px; /* Thinner line */
    background: linear-gradient(to right, var(--primary-blue), var(--accent-color)); /* More consistent gradient */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Softer shadow */
    margin: 50px auto; /* Adjusted margin */
}

/* Application Industries Page Styling */
.application-industries-page {
    width: 100%;
    padding: 30px 0; /* More compact */
    min-height: auto; /* Allow auto height */
    text-align: center;
    background: var(--light-grey); /* Use defined variable */
    background-size: 600% 600%;
    animation: gradientAnimation 30s ease-in-out infinite;
}

.application-industries-page h2 {
    font-size: 2.2em; /* Reduced font size */
    color: #333;
    margin-bottom: 20px; /* Reduced margin */
}

/* Keyframe Animations */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    33% { background-position: 50% 50%; }
    66% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .grid-template-columns {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    .grid-auto-rows {
        grid-auto-rows: 120px;
    }
    .header-logo {
        height: 80px;
        top: -20px;
    }
    .nav-left, .nav-right {
        gap: 20px;
    }
    .nav-center {
        margin: 0 40px;
    }
    #expanded-content {
        width: 90%;
        padding: 20px;
    }
    #expanded-title {
        font-size: 2em;
    }
    #expanded-text {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    .nav-center {
        order: -1; /* Move logo to the top */
        margin-bottom: 20px;
    }
    .header-logo {
        position: static; /* Reset positioning */
        transform: none;
        height: 70px;
    }
    .nav-left, .nav-right {
        width: 100%;
        justify-content: space-around;
    }
    .grid-item.wide, .grid-item.tall, .grid-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* Product Range Carousel Styling */
#product-range-page {
    padding: 60px 0;
    text-align: center;
    background: var(--light-grey);
    background-size: 600% 600%;
    animation: gradientAnimation 30s ease-in-out infinite;
}

#product-range-page h2 { /* Updated selector */
    font-size: 3.2em; /* Slightly larger heading */
    color: var(--dark-grey);
    margin-bottom: 40px; /* Adjusted margin */
}

.carousel-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px;
    overflow: hidden;
    position: relative;
    height: 450px;
}

.carousel {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-range-card {
    min-width: 300px; /* Adjusted width */
    height: 380px; /* Adjusted height */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05); /* Softer shadow with a border effect */
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 25px;
    text-align: center;
    margin: 0 15px;
    transition: all 0.3s ease; /* Simplified transition */
    opacity: 1; /* Always fully opaque */
    cursor: pointer;
}

.product-range-card:hover,
.product-range-card.active {
    transform: scale(1.05); /* Slightly less pronounced scale */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 10;
    background: linear-gradient(135deg, #00b347, #0066cc); /* Smoother green to blue gradient */
    color: #fff;
}

.product-range-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--dark-grey);
    height: auto; /* Remove fixed height if not necessary, let content dictate */
}

.product-range-card.active h3 {
    color: #fff;
}

.product-range-card img {
    width: 180px; /* Adjusted image width */
    height: 130px; /* Adjusted image height */
    object-fit: contain; /* Changed to contain to prevent cropping */
    border-radius: 5px;
    margin-bottom: 15px;
}

/* New Keyframe for Product Card Gradient Animation */
@keyframes cardGradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Carousel Wrapper Styling */
.carousel-wrapper {
    background-color: #fff;
    border-radius: 20px;
    padding: 30px;
    margin: 50px auto;
    max-width: 1200px;
    box-shadow: 0 0 0 5px transparent; /* Initial transparent border for glow */
    animation: glowingBorder 3s linear infinite;
    position: relative;
    overflow: hidden; /* Ensure glow stays within bounds */
}

/* Glowing Border Animation */
@keyframes glowingBorder {
    0% {
        box-shadow: 0 0 0 5px rgba(0, 188, 212, 0.7); /* Cyan-Blue */
    }
    33% {
        box-shadow: 0 0 0 5px rgba(0, 172, 193, 0.7); /* Bluish Cyan */
    }
    66% {
        box-shadow: 0 0 0 5px rgba(173, 255, 47, 0.7); /* Greenish Yellow */
    }
    100% {
        box-shadow: 0 0 0 5px rgba(0, 188, 212, 0.7); /* Cyan-Blue */
    }
}

.carousel-container {
    width: 100%; /* Take full width of wrapper */
    overflow: hidden; /* Hide overflowing cards */
}

.carousel {
    display: flex;
    transition: transform 0.8s ease-in-out; /* Smooth transition for movement */
    justify-content: flex-start; /* Align items to start for proper scrolling */
}

.product-range-card {
    flex: 0 0 auto; /* Prevent cards from shrinking */
    margin: 0 15px; /* Space between cards */
    /* Existing styles */
}

.about-us-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.about-us-content p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-us-highlights {
    display: flex;
    justify-content: space-around;
    margin: 20px 0; /* More compact */
}

.highlight-item {
    text-align: center;
}

.highlight-item h3 {
    font-size: 3em;
    color: var(--primary-blue);
    margin: 0;
}

.highlight-item p {
    font-size: 1.1em;
    color: var(--medium-grey);
    margin: 0;
}

/* About Us Page Styling */
.about-us-intro {
    font-size: 1.2em;
    line-height: 1.6;
    max-width: 800px;
    margin: 20px auto 40px auto;
    color: #555;
}

.team-cards-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    padding-bottom: 50px;
}

.team-card {
    width: 250px; /* Width of the card */
    height: 350px; /* Height of the card */
    perspective: 1000px; /* For 3D flip effect */
    cursor: pointer;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s; /* Smooth flip transition */
    transform-style: preserve-3d;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.team-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Hide back of the card during flip */
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.card-front {
    background-color: #fff;
    color: #333;
}

.card-front img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 15px; /* Match card border-radius */
}

.card-back {
    background: linear-gradient(45deg, #00BCD4, #00ACC1, #ADFF2F); /* Gradient for back */
    color: #fff;
    transform: rotateY(180deg);
}

.card-back h4 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.card-back p {
    font-size: 1em;
    line-height: 1.5;
    padding: 0 10px;
}

/* Our Customers Page Styling */
#our-customers-page {
    padding: 50px 0;
    text-align: center;
    background: var(--light-grey);
    background-size: 600% 600%;
    animation: gradientAnimation 30s ease-in-out infinite;
    overflow: hidden;
}

#our-customers-page h2 {
    font-size: 3em;
    color: #333;
    margin-bottom: 50px;
}

.customer-scroller {
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller-inner {
    display: flex;
    flex-wrap: nowrap;
    animation: scroll 40s linear infinite;
}

.scroller-inner img {
    height: 80px;
    margin: 0 40px;
}

#testimonials-page {
    padding: 50px 0;
    text-align: center;
    background: var(--light-grey);
    background-size: 600% 600%;
    animation: gradientAnimation 30s ease-in-out infinite;
    overflow: hidden;
}

#testimonials-page h2 {
    font-size: 3em;
    color: #333;
    margin-bottom: 50px;
}

.testimonial-card {
    width: 300px;
    height: 200px;
    perspective: 1000px;
    margin: 0 20px;
    flex-shrink: 0; /* Prevent cards from shrinking */
}

.testimonial-card .card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.testimonial-card:hover .card-inner {
    transform: rotateY(180deg);
}

.testimonial-card .card-front,
.testimonial-card .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.testimonial-card .card-front {
    background-color: #fff;
    color: #333;
}

.testimonial-card .card-back {
    background: var(--primary-blue); /* Consistent blue for back */
    color: #fff;
    transform: rotateY(180deg);
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Contact Us Page Styling */
#contact-us-page {
    padding: 30px 0; /* More compact */
    text-align: center;
    background: var(--light-grey); /* Use defined variable */
    background-size: 600% 600%;
    animation: gradientAnimation 30s ease-in-out infinite;
    min-height: auto;
}

#contact-us-page h2 {
    font-size: 3em;
    color: #333;
    margin-bottom: 50px;
}

.contact-content-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.contact-details {
    flex: 1;
    min-width: 300px;
    text-align: left;
    padding: 20px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start; /* Align items to the start */
    min-height: 300px; /* Increased height to ensure button visibility */
}

.contact-item {
    margin-bottom: 20px;
    /* Removed flex properties from contact-item to rely on parent contact-details for layout */
    /* display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    height: 100%; */
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation-delay: 0.3s; }
.contact-item:nth-child(4) { animation-delay: 0.4s; }
.contact-item:nth-child(5) { animation-delay: 0.5s; }

.contact-item h3 {
    font-size: 1.5em;
    color: #00BCD4; /* Cyan-Blue */
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 1.1em;
    color: #555;
}

.social-links a img {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.social-links a img:hover {
    transform: scale(1.1);
}

.contact-map {
    flex: 1;
    min-width: 400px;
    height: 450px;
    background-color: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer Styling */
footer {
    background-color: #333;
    padding: 30px 2rem; /* Reduced padding */
    color: #f4f4f4;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-about, .footer-links, .footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-about h3, .footer-links h3, .footer-contact h3 {
    font-size: 1.2rem; /* Reduced font size */
    margin-bottom: 15px;
    color: #fff;
    padding-bottom: 10px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to right, var(--primary-blue), var(--accent-color));
    border-image-slice: 1;
}

.footer-about p {
    line-height: 1.6;
    color: #ccc;
}

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

.footer-links ul li a {
    text-decoration: none;
    color: #ccc;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #007bff;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-socials {
    margin-top: 20px;
}

.footer-socials a {
    color: #ccc;
    font-size: 1.8rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: #007bff;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
}

@keyframes panUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Form Page Styling */
.contact-form-container {
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--light-grey);
    background-size: 600% 600%;
    animation: gradientAnimation 30s ease-in-out infinite;
}

.contact-form-box {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
}

.contact-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-form-header h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
}

.product-name-display {
    font-size: 1.2em;
    color: #555;
}

#inquiry-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

#inquiry-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#inquiry-form label {
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

#inquiry-form input,
#inquiry-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#inquiry-form input:focus,
#inquiry-form textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* reCAPTCHA Styling */
.g-recaptcha {
    margin-top: 20px;
    margin-bottom: 20px;
}

#inquiry-form textarea {
    resize: vertical;
}

.submit-btn {
    background: var(--primary-blue);
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    width: 100%;
    margin-top: 20px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.success-message {
    text-align: center;
}

.success-message h2 {
    font-size: 2.5em;
    color: #00BCD4;
    margin-bottom: 20px;
}

.success-message p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 30px;
}

.home-btn {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-blue);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Styles for the new contact form button */
.contact-form-btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--primary-blue); /* Use defined variable */
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: auto;
    align-self: flex-end;
}

.contact-form-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Scroll Alignment Fixes */
#main-content,
#application-industries-page,
#product-range-section,
#about-us-page,
#our-customers-page,
#contact-us-page {
    scroll-margin-top: 60px; /* Adjusted to new header height */
}

/* Smooth Scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Header hide/show on scroll */
header.header-hidden {
    transform: translateY(-100%); /* Move header completely up */
}
header {
    transition: transform 0.3s ease-in-out; /* Smooth transition for the effect */
}

/* Popular Searches Accordion */
.popular-searches-section {
    width: 100%;
    margin-top: 30px;
    text-align: left;
    color: #ccc;
    font-size: 0.9em;
}

.popular-searches-section h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2em;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 5px;
    display: inline-block;
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-header {
    background-color: transparent;
    color: var(--accent-color);
    cursor: pointer;
    padding: 10px 0;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: 0.4s;
    font-size: 1em;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:after {
    content: '\002B'; /* Unicode character for "plus" sign (+) */
    color: #777;
    font-weight: bold;
    float: right;
    margin-left: 5px;
}

.accordion-header.active:after {
    content: "\2212"; /* Unicode character for "minus" sign (-) */
}

.accordion-content {
    padding: 0 10px;
    background-color: rgba(0, 0, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    border-radius: 0 0 5px 5px;
}

.accordion-content p {
    padding: 15px 0;
    margin: 0;
    line-height: 1.6;
    color: #ddd;
}
/* --- Application Detail Page Styles --- */
.industry-title {
    font-size: 2.5rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 20px;
}

.industry-description {
    font-size: 1.2rem;
    text-align: center;
    color: #555;
    max-width: 800px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

.industry-detail-section {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.industry-intro, .industry-applications, .industry-solutions, .industry-benefits, .industry-contact {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.industry-intro h3, .industry-applications h3, .industry-solutions h3, .industry-benefits h3, .industry-contact h3 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
}

.industry-applications ul {
    list-style-type: none;
    padding: 0;
}

.industry-applications ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
}

.industry-applications ul li strong {
    color: var(--dark-grey);
}

.industry-solutions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.industry-solutions h3 {
    width: 100%; /* Force header to own line */
}

.solution-card {
    flex: 1;
    min-width: 300px;
    background: var(--light-blue);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #bee5eb;
}

.solution-card h4 {
    color: var(--primary-blue);
    margin-top: 0;
}

.industry-benefits p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.industry-contact {
    text-align: center;
    background: linear-gradient(135deg, var(--light-blue), #ffffff);
}

.industry-contact h3 {
    border: none;
    padding: 0;
}

.contact-btn {
    display: inline-block;
    background-color: var(--primary-blue);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.contact-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}


/* --- Application Page Sidebar Layout --- */
.application-page-wrapper {
    display: flex;
    max-width: 1300px;
    margin: 80px auto 40px auto; /* Top margin to clear header */
    padding: 0 20px;
    gap: 40px;
}

#application-sidebar {
    flex: 0 0 250px; /* Fixed width sidebar */
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: fit-content;
    position: sticky;
    top: 100px; /* Sticky below header */
}

#application-sidebar h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--light-blue);
    padding-bottom: 10px;
}

#industry-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#industry-list li {
    margin-bottom: 10px;
}

#industry-list a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--dark-grey);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

#industry-list a:hover, #industry-list a.active {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    transform: translateX(5px);
}

#application-detail-content {
    flex: 1; /* Take remaining width */
    padding: 0 !important; /* Override inline style if any */
    max-width: none !important; /* Override inline style */
    margin: 0 !important;
}

/* Updated Title Style (Box Overlay) */
.industry-title {
    background-color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: table; /* Centers the box */
    margin: 0 auto 30px auto;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 2.2rem;
    border: 2px solid var(--light-blue);
}

@media (max-width: 900px) {
    .application-page-wrapper {
        flex-direction: column;
    }
    #application-sidebar {
        position: static;
        width: 100%;
        flex: none;
    }
}


/* --- Contact Section Updates --- */
.contact-content-container {
    /* Ensure flex container aligns items properly */
    align-items: stretch; /* Stretch to fill height */
}

.contact-details.compact {
    display: flex;
    flex-direction: column;
    padding: 25px; /* Reduced padding */
    gap: 15px; /* Reduced gap between items */
    min-height: auto; /* Allow auto height */
}

.compact-info-group {
    display: flex;
    flex-direction: column; /* Stack label and text */
    gap: 2px; /* Very tight spacing between label and text */
    text-align: left;
}

.compact-label {
    font-size: 1.1em;
    color: #00BCD4;
    margin: 0;
    font-weight: 700;
}

.compact-text {
    font-size: 1em;
    color: #555;
    margin: 0;
    line-height: 1.4;
}

.faq-section {
    background-color: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: left;
}

.faq-section .accordion-content a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.faq-section .accordion-content a:hover {
    text-decoration: underline;
}

/* Ensure map takes full height of the container */
.contact-map {
    height: auto; /* Allow map to adjust */
    min-height: 500px; /* Ensure minimum height matches content */
}

@media (max-width: 900px) {
    .contact-content-container {
        flex-direction: column;
    }
    .contact-map {
        min-height: 300px;
    }
}


/* --- FAQ Text Color Correction --- */
.faq-section .accordion-content {
    background-color: rgba(0, 0, 0, 0.05); /* Much lighter background for FAQ content */
}

.faq-section .accordion-content p {
    color: #333; /* Dark grey text for better readability on light background */
}

.faq-section .accordion-header {
    color: var(--primary-blue); /* Professional blue for FAQ headers */
}

/* --- OCM Configurator Styles --- */
.ocm-config-container {
    max-width: 1000px;
    margin: 40px auto;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ocm-steps-indicator {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid var(--light-blue);
    padding-bottom: 15px;
}

.ocm-steps-indicator .step {
    font-weight: bold;
    color: #ccc;
    position: relative;
    padding-bottom: 5px;
}

.ocm-steps-indicator .step.active {
    color: var(--primary-blue);
}

.ocm-steps-indicator .step.completed {
    color: green; /* Or any color to signify completion */
    /* You can add a checkmark icon here if desired */
    /* content: '\f00c'; */ /* Unicode for FontAwesome check icon */
    /* font-family: 'Font Awesome 5 Free'; */
    /* font-weight: 900; */
}

.ocm-steps-indicator .step.completed:before {
    content: '\2713 '; /* Unicode checkmark */
    color: green;
    margin-right: 5px;
}

.config-step-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.config-step-panel.active {
    display: block;
}

.config-step-panel h3 {
    margin-top: 0;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 25px;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.config-option {
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: #f9f9f9;
}

.config-option img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
}

.config-option span {
    font-weight: 600;
    font-size: 1.1em;
}

.config-option:hover {
    border-color: var(--accent-color);
    background: #fff;
    transform: translateY(-5px);
}

.config-option.selected {
    border-color: var(--primary-blue);
    background: var(--light-blue);
    box-shadow: 0 5px 15px rgba(0,86,179,0.1);
}

.config-option.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: #eee;
}

.custom-icon, .axis-icon {
    width: 80px;
    height: 80px;
    background: var(--light-blue);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    font-weight: bold;
    border-radius: 50%;
}

.config-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.next-step, .prev-step, .finish-btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.next-step, .finish-btn {
    background: var(--primary-blue);
    color: #fff;
    border: none;
}

.next-step:disabled, .finish-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.prev-step {
    background: #fff;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

/* Summary Box */
.config-summary {
    background: #f0f7ff;
    border-left: 5px solid var(--primary-blue);
    padding: 20px;
    border-radius: 8px;
}

.config-summary h4 {
    margin: 0 0 15px 0;
    color: var(--primary-blue);
}

.config-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.config-summary li {
    font-size: 0.95em;
    color: #666;
}

.config-summary li span {
    display: block;
    color: #333;
    font-weight: bold;
    font-size: 1.1em;
}

.industry-hint {
    font-size: 0.8em;
    color: #777;
    margin: 0;
    font-style: italic;
}

.combination-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.combo-option {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 20px;
}

.combo-option h5 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: var(--primary-blue);
}

.combo-tools {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.industry-list {
    font-size: 0.9em;
    color: #666;
    margin: 0;
}

@media (max-width: 600px) {
    .ocm-steps-indicator {
        font-size: 0.8em;
    }
    .config-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* NEW STYLES FOR SUB-PRODUCT REDESIGN */

.sub-product-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 20px;
}

#product-main-title {
    background-color: #fff;
    padding: 15px 45px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: table; /* Centers the box */
    margin: 0 auto 40px auto;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 3.2rem;
    border: 2px solid var(--light-blue);
    text-align: center;
}

.three-column-layout {
    display: grid;
    grid-template-columns: 250px 1fr 280px; /* Left, Center, Right column widths */
    gap: 30px;
}

/* --- Column Styling --- */
.left-column, .center-column, .right-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* --- Widget Styling (Left & Right Columns) --- */
.industry-list-widget, .keywords-widget, .blog-widget {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.industry-list-widget h2, .keywords-widget h2, .blog-widget h2 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-blue);
}

/* Industry List (Left Column) */
#industry-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#industry-list li {
    margin-bottom: 8px;
}

#industry-list a {
    text-decoration: none;
    color: var(--dark-grey);
    padding: 8px 12px;
    display: block;
    border-radius: 6px;
    transition: all 0.3s ease;
}

#industry-list a:hover {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    transform: translateX(4px);
}

/* Keywords List (Left Column) */
.keywords-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-tag {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Blog Categories (Right Column) */
/* Blog Categories (Right Column) */
.blog-category {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.blog-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.blog-category h3 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin: 0 0 15px 0;
    font-weight: 600;
}

.blog-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-button {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
    position: relative;
    overflow: hidden;
    line-height: 1.4;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.blog-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    background: linear-gradient(135deg, #0056b3 0%, var(--primary-blue) 100%);
}

.blog-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.2);
}

.blog-button:before {
    content: "";
    position: absolute;
    right: 15px;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.blog-button:hover:before {
    right: 12px;
    opacity: 1;
    transform: scale(1.1);
}

.blog-button:focus {
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2), 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Responsive adjustments for blog buttons */
@media (max-width: 768px) {
    .blog-button {
        padding: 12px 16px;
        font-size: 0.9rem;
        min-height: 45px;
    }

    .blog-button:before {
        right: 12px;
        font-size: 1.1rem;
    }
}

/* --- Center Column Styling --- */

/* Search Bar */
.search-bar-container {
    width: 100%;
}

#machine-search-bar {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    border-radius: 25px;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
}

#machine-search-bar:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}
/* Styles for Technical Specification Tab */
#tab-specification h2 {
    font-size: 2em; /* Keep main title for the tab clear */
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary-blue);
}

#tab-specification h3 {
    font-size: 1.4em; /* Smaller font for main section titles */
    color: var(--dark-grey);
    margin-top: 30px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--light-grey); /* Subtle separator */
}

#tab-specification h4 {
    font-size: 1.1em; /* Even smaller for sub-section titles */
    color: var(--medium-grey);
    margin-top: 20px;
    margin-bottom: 8px;
    padding-left: 10px; /* Indent sub-section title */
}

.spec-sub-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden; /* Ensures rounded corners are applied to content */
}

.spec-sub-table th,
.spec-sub-table td {
    padding: 10px 15px;
    border: 1px solid #eee;
    text-align: left;
    font-size: 0.9em; /* Reduced font size for table content */
    color: var(--dark-grey);
}

.spec-sub-table th {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    font-weight: 600;
}

.spec-sub-table tr:nth-child(even) {
    background-color: #f9f9f9; /* Zebra striping for readability */
}

.spec-sub-table tr:hover {
    background-color: #f0f8ff; /* Subtle hover effect */
}

#tab-specification p {
    font-size: 0.95em; /* Small font size for standalone paragraphs */
    color: var(--medium-grey);
    margin-bottom: 15px;
    line-height: 1.5;
}

/* --- Missing Styles for Sub-Products & Product Details --- */

/* Blog Post Page Styles */
.blog-post-container {
    max-width: 1200px;
    margin: 80px auto 40px auto; /* Reduced from 160px to match 65px header + spacing */
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.blog-post-main {
    background: #fff;
    border-radius: 12px;
    padding: 20px; /* Reduced from 40px to tighten spacing */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.blog-post-header {
    position: static;
    z-index: 90;
    background: #fff;
    margin-bottom: 30px;
    text-align: center;
    padding-top: 10px;
}

aside.blog-post-sidebar {
    position: static;
    align-self: start;
}

.sidebar-widget.related-articles {
    padding: 24px;
    border-radius: 12px;
}

/* Specific book icon suppression in blog widget area */
.blog-widget .fa-book, .blog-widget .fas.fa-book {
    display: none !important;
}

.blog-post-title {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    line-height: 1.2;
}

.blog-post-meta {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.blog-post-content {
    line-height: 1.8;
    color: #333;
    font-size: 1.1rem;
}

.blog-post-content h2 {
    color: var(--primary-blue);
    margin: 40px 0 20px 0;
    font-size: 1.8rem;
}

.blog-post-content h3 {
    color: var(--dark-grey);
    margin: 30px 0 15px 0;
    font-size: 1.5rem;
}

.blog-post-content p {
    margin-bottom: 20px;
}

.blog-post-content ul, .blog-post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.blog-post-content li {
    margin-bottom: 10px;
}

.blog-post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
    color: var(--primary-blue);
    margin: 0 0 20px 0;
    font-size: 1.4rem;
    border-bottom: 2px solid var(--light-blue);
    padding-bottom: 10px;
}

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

.related-articles li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.related-articles li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-articles a {
    text-decoration: none;
    color: var(--dark-grey);
    font-weight: 500;
    display: block;
    transition: color 0.3s ease;
}

.related-articles a:hover {
    color: var(--primary-blue);
}

.back-to-products {
    display: inline-block;
    background: var(--primary-blue);
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.back-to-products:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

@media (max-width: 900px) {
    .blog-post-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .blog-post-main {
        padding: 30px 20px;
    }

    .blog-post-title {
        font-size: 2rem;
    }
}

/* Machines Grid (Sub-products) */
.machines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.machine-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.machine-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.machine-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover; /* or contain, depending on image aspect ratios */
    background: #f9f9f9;
}

.machine-card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.machine-card-content h3 {
    font-size: 1.1em;
    margin: 0 0 10px 0;
    color: var(--dark-grey);
}

.machine-card-description {
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

.inquire-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--light-blue);
    color: var(--primary-blue);
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.3s ease;
}

.machine-card:hover .inquire-btn {
    background-color: var(--primary-blue);
    color: #fff;
}

/* Product Detail Page */
.product-detail-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.back-button {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #004494;
}

.back-button i {
    font-size: 14px;
}

.product-main-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.product-gallery {
    flex: 1;
    min-width: 300px;
}

.main-image-container {
    width: 100%;
    height: 400px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fcfcfc;
}

.main-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumbnail-container img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.thumbnail-container img:hover, .thumbnail-container img.active {
    border-color: var(--primary-blue);
}

.product-summary {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.product-summary h1 {
    font-size: 2.5em;
    color: var(--primary-blue);
    margin-bottom: 15px;
    line-height: 1.2;
}

.product-summary p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

#product-key-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

#product-key-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: var(--dark-grey);
}

#product-key-features li:before {
    content: '\f00c'; /* FontAwesome check */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 2px;
}

/* Tabs */
.product-detailed-info {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.tab-navigation {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
    gap: 20px;
}

.tab-navigation .tab-button {
    background: none;
    border: none;
    padding: 10px 0;
    font-size: 1.2em;
    color: #777;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    transition: color 0.3s;
    font-family: 'Roboto', sans-serif;
}

.tab-navigation .tab-button.active {
    color: var(--primary-blue);
}

.tab-navigation .tab-button.active:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-blue);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

/* Spec Table */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.spec-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.spec-table tr:first-child td {
    font-weight: bold;
    background-color: var(--light-blue);
    color: var(--primary-blue);
}

/* Responsive */
@media (max-width: 900px) {
    .three-column-layout {
        grid-template-columns: 1fr;
    }
    
    .left-column, .right-column {
        order: 2; /* Move widgets below content on mobile */
    }
    
    .center-column {
        order: 1;
    }
    
    .product-main-section {
        flex-direction: column;
    }
}`n/* Structured Spec Styles */`n#spec-table h3 { margin: 25px 0 10px 0; color: var(--primary-blue); border-bottom: 2px solid var(--primary-blue); padding-bottom: 5px; font-size: 1.2em; }`n#spec-table h4 { margin: 15px 0 8px 0; color: var(--text-dark); font-size: 1em; font-weight: 600; }`n.spec-sub-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 0.95em; }`n.spec-sub-table th, .spec-sub-table td { padding: 10px 12px; border: 1px solid #e0e0e0; text-align: left; }`n.spec-sub-table th { background-color: #f5f5f5; font-weight: 600; }
