/*
 * new_cooling_towers_style.css
 * This stylesheet combines all custom styles for the redesigned cooling-towers page.
 * It's designed to override and extend the existing site's CSS,
 * focusing on full-width sections and responsive behavior.
 */

/* --- Global Layout Overrides for 100% Width Content Area --- */
/* These rules aim to make the existing table-based layout fill 100% width
   and ensure backgrounds extend edge-to-edge. */

/* Prevent horizontal scroll issues due to fluid layouts or elements extending beyond viewport */
body, html {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    color: #333;
    scroll-behavior: smooth; /* For back-to-top button */
}




/* Ensure the overall page container takes full available width and is centered */
#pgContainer {
    width: 100% !important; /* Force 100% width for the main page container */
    margin: 0 auto !important; /* Center it */
    max-width: none !important; /* Ensure it doesn't have a hidden max-width */
    padding: 0 !important; /* Remove any padding that might shrink it */
}

/* Target the outermost table inside pgContainer */
#pgContainer > table {
    width: 100% !important; /* Force this table to fill 100% width */
    margin: 0 auto !important; /* Center it */
    border-spacing: 0 !important; /* Remove default table spacing */
    padding: 0 !important; /* Remove default table padding */
    table-layout: fixed; /* Helps in more predictable column widths */
}

/* Target the td that wraps contentWrapper AND footerWrapper */
#pgContainer > table > tbody > tr > td {
    padding: 0 !important; /* Remove any padding on this main td */
}

/* Target the content wrapper div */
#contentWrapper {
    width: 100% !important; /* Ensure content wrapper takes full width */
    margin: 0 auto !important; /* Center it */
    overflow: hidden; /* Contains floats and ensures its background fills */
    padding: 0 !important; /* Remove any padding on the wrapper */
}

/* Target the conditional table that holds the left nav and main content */
/* This table only exists if $variables_array[2] is true (left nav active) */
#contentWrapper > table {
    width: 100% !important; /* Force 100% width for this table */
    margin: 0 auto !important; /* Center it */
    border-spacing: 0 !important;
    padding: 0 !important;
    table-layout: fixed;
}

/* The td that contains the left navigation */
#contentWrapper > table > tbody > tr > td[width="215"] {
    width: 215px !important; /* Keep the left nav fixed width */
    vertical-align: top;
    padding: 0 !important; /* Remove any padding */
}

/* The td that contains the mainPane table (your new content area) */
#contentWrapper > table > tbody > tr > td[style*="height:100%;"] {
    width: auto !important; /* Allow this content area to take remaining width */
    padding: 0 !important; /* Remove any padding */
    vertical-align: top;
}

/* The main content table (table#mainPane) */
table#mainPane {
    width: 100% !important; /* Force 100% width for the main content table */
    margin: 0 !important; /* Ensure no extra margins */
    padding: 0 !important;
    border-spacing: 0 !important;
    table-layout: fixed;
}

/* The innermost table within mainPane, where your new sections directly reside */
table#mainPane > tbody > tr > td > table {
    width: 100% !important; /* Force 100% width for the innermost content table */
    margin: 0 !important;
    padding: 0 !important;
    border-spacing: 0 !important;
    table-layout: fixed;
}

/* Ensure the footer wrapper takes full width */
#footerWrapper {
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    max-width: none !important; /* Important to override any inherited max-width */
}

/* Ensure the new site footer also takes full width */
#newSiteFooter {
    width: 100% !important;
    margin: 0 auto !important;
    padding: 40px 0; /* Keep original padding */
    position: relative;
    background-color: #e0e0e0; /* This background should now stretch 100% */
}

/* New section elements should inherently stretch their background and use .new-container for content centering */
/* Note: mainHeroSection is now full-width with a specific class, other sections remain */
.new-image-grid-section,
.new-parts-warehouse-section,
.new-leaders-section,
.new-main-contact-section {
    width: 100%; /* Explicitly ensure these sections take 100% width */
    /* Their backgrounds will now stretch edge-to-edge */
}

/* The .new-container class handles the centering and max-width for content inside sections */
.new-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add some horizontal padding for smaller screens */
}

/* Global section padding for content sections */
section {
    padding: 60px 0; /* Default vertical padding for new sections */
}

/* --- NEW Fixed Header Section --- */
#fixedSiteHeader {
	position:relative;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensure it's always on top of other content */
    padding: 10px 0; /* Vertical padding */
}

.fixed-header-inner-wrap { /* "additional container" */
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; /* Match main content width */
    margin: 0 auto;
    padding: 0 20px; /* Horizontal padding */
}

.fixed-header-logo img { /* "additional container" (logo image itself) */
    height: 60px; /* Adjust logo height */
    width: auto;
    display: block;
}

/* If using text-based logo in fixed header */
.fixed-header-logo .text-logo-overlay { /* "additional container" (text logo) */
    font-family: 'Arial Black', sans-serif;
    font-size: 2.2em;
    color: #fff;
    display: inline-block;
    letter-spacing: -1px;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.fixed-main-navigation { /* "additional container" */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Styling for the original MenuBarHorizontal classes within the fixed header */
#fixedSiteHeader .MenuBarHorizontal {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px; /* Space between nav items */
}

#fixedSiteHeader .MenuBarHorizontal.fixed-nav-top-row { /* "additional container" class */
    margin-bottom: 5px; /* Space between top and bottom nav rows */
}

#fixedSiteHeader .MenuBarHorizontal.fixed-nav-bottom-row { /* "additional container" class */
    margin-bottom: 0; /* No margin below the last row */
}

/* Styling for the original MenuBarItemSubmenu within the fixed header */
#fixedSiteHeader .MenuBarHorizontal li a.MenuBarItemSubmenu {
    text-decoration: none;
    color: #000; 
    font-size: 0.95em;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 0; /* Padding for click area */
    transition: color 0.3s ease;
    white-space: nowrap; /* Prevent nav items from wrapping too early */
}

#fixedSiteHeader .MenuBarHorizontal li a.MenuBarItemSubmenu:hover {
    color: #00aaff; /* Light blue on hover */
}


/* --- NEW Hero Section (Content only, background behind fixed header) --- */
#mainHeroSection.new-hero-section-full-width { /* "additional container" */
    background-image: url('/images/home/header-large.jpg'); /* REPLACE WITH YOUR LARGE TOP IMAGE */
    background-size: cover;
    background-position: center top; /* Start background from top of viewport */
    background-repeat: no-repeat;
    position: relative;
    color: #fff;
    min-height: 500px; /* Visual height of the hero section including the part behind the header */
    padding-top: 100px; /* This pushes content down *within* the hero, matching body padding-top */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically within remaining space */
    padding-bottom: 80px; /* Padding for the bottom hero text */
    /* margin-top is no longer needed here as padding-top on body handles the offset */
}

/* Dark overlay for better text contrast over the background image */
#mainHeroSection.new-hero-section-full-width::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); /* 40% opaque black overlay */
    z-index: 1;
}

#mainHeroSection.new-hero-section-full-width .new-container {
    position: relative;
    z-index: 2; /* Ensures content is above the overlay */
}

.hero-text-content {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center items vertically */
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

#mainHeroSection.new-hero-section-full-width h2 {
    font-size: 2.5em; /* Larger hero heading */
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
    color: #ffffff;
    max-width: 90%;
}

.text-rotator { /* "additional container" */
    min-height: 120px; /* Ensure consistent height during rotation */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto 0;
    max-width: 900px;
    text-align: center;
}

.text-rotator p {
    font-size: 1.4em;
    font-weight: 300;
    line-height: 1.6;
    color: #e0e0e0;
    transition: opacity 0.5s ease-in-out;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.hero-nav-arrows { /* "additional container" */
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    z-index: 3;
    pointer-events: none;
}

.hero-nav-arrows a {
    color: #fff;
    font-size: 3em;
    text-decoration: none;
    background-color: rgba(0,0,0,0.3);
    padding: 0 15px;
    border-radius: 50%;
    pointer-events: auto;
    transition: background-color 0.3s ease;
}

.hero-nav-arrows a:hover {
    background-color: rgba(0,0,0,0.6);
}


/* --- Image Grid Section (Product Categories) --- */
.new-image-grid-section { /* "additional container" */
    padding: 80px 0;
    background-color: #ffffff;
    text-align: center;
}

.new-image-grid-section h3 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 50px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.new-grid { /* "additional container" */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.new-grid-item { /* "additional container" */
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.new-grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.new-grid-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #f0f0f0;
}

.new-grid-item span {
    padding: 18px 10px;
    font-size: 1.15em;
    font-weight: 600;
    color: #005f73;
    display: block;
    text-transform: uppercase;
}

/* --- Parts Warehouse Section --- */
.new-parts-warehouse-section { /* "additional container" */
    background-color: #5b768e;
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.new-parts-warehouse-section h4 {
    font-size: 2.5em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.new-parts-warehouse-section p {
    font-size: 1.2em;
    color: #e0e0e0;
    margin-bottom: 40px;
}

.parts-gallery { /* "additional container" */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}

.parts-gallery .part-image {
    max-width: 120px;
    height: auto;
    transition: transform 0.2s ease-in-out;
    padding: 10px;
}

.parts-gallery .part-image:hover {
    transform: scale(1.2);
}

/* --- Industry Leaders / Video Section --- */
.new-leaders-section { /* "additional container" */
    background-color: #f8f8f8;
    padding: 80px 0;
    text-align: center;
}

.new-leaders-section h3 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.new-leaders-section p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 50px;
}

.video-container { /* "additional container" */
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 0 auto;
    max-width: 960px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 12px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}

/* --- New Main Contact Section --- */
.new-main-contact-section { /* "additional container" */
    background-color: #f8f8f8;
    padding: 40px 0 80px;
    text-align: center;
    color: #333;
}

.new-main-contact-section .contact-layout { /* "additional container" */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.new-main-contact-section .contact-image-col { /* "additional container" */
    flex-basis: 40%;
    max-width: 400px;
}

.new-main-contact-section .contact-image-col img {
    max-width: 100%;
    height: auto;
    display: block;
}

.new-main-contact-section .contact-details-col { /* "additional container" */
    flex-basis: 40%;
    text-align: left;
    max-width: 400px;
}

.new-main-contact-section .contact-details-col h4 {
    font-size: 2em;
    color: #005f73;
    margin-bottom: 25px;
    font-weight: 700;
    text-transform: uppercase;
}

.new-main-contact-section .contact-details-col p {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #555;
    display: flex;
    align-items: center;
}

.new-main-contact-section .contact-details-col p i {
    margin-right: 15px;
    color: #005f73;
    font-size: 1.3em;
    width: 25px;
    text-align: center;
}

/* --- Footer Section (Redesigned) --- */
#newSiteFooter .new-container { /* "additional container" */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-tower-graphic-top { /* "additional container" */
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.footer-tower-graphic-top img {
    max-width: 450px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.footer-bottom-row-content { /* "additional container" */
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    width: 100%;
    max-width: 1000px;
    gap: 30px;
}

.footer-col { /* "additional container" */
    flex: 1;
    padding: 0 15px;
}

.footer-logo-col { /* "additional container" */
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    max-width: 250px;
    height: auto;
    display: block;
}

/* If using text-based logo in footer */
.footer-logo .text-logo {
    font-family: 'Arial Black', sans-serif;
    font-size: 2.2em;
    color: #000;
    display: inline-block;
    letter-spacing: -1px;
    text-transform: uppercase;
}
.footer-logo .text-logo sup
