/* ========================================
 * MEGA MENU STYLES
 * ========================================
 * 
 * Consolidated styles for the mega menu navigation
 * Previously located in style.css
 */

/* ==========================================================================
   MEGA MENU CONTAINER & POSITIONING
   ========================================================================== */

.mega-menu-navigation {
    position: relative;
    z-index: 1000;
}

.mega-menu {
    display: none;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 71px;
    width: 1320px;
    max-width: 90vw;
    background: #fff;
    border: 2px solid #186396;
    border-top: none !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    margin: 0 !important;
    isolation: isolate;
    z-index: 999999999 !important;
    padding: 2rem;
}

/* ==========================================================================
   MEGA MENU NAVIGATION & LINKS
   ========================================================================== */

.mega-menu-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 1.5rem 0;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #ffd700;
}

/* Active state */
.mega-menu-nav .nav-item.active .mega-menu {
    display: block;
}

.mega-menu-nav .nav-item.active > .nav-link {
    background: #186396;
    color: #fff;
    border-radius: 4px 4px 0 0;
    transition: background 0.2s;
}

/* ==========================================================================
   DIAGONAL HOVER EFFECTS
   ========================================================================== */

.mega-menu-nav .nav-link:not([href="/search"]) {
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
    background: transparent !important;
}

.mega-menu-nav .nav-link:not([href="/search"])::before {
    content: "";
    width: 80%;
    height: 100%;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) skew(-23deg, 0deg);
    background: #186396;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.mega-menu-nav .nav-link:not([href="/search"]):hover::before {
    opacity: 1;
}

.mega-menu-nav .nav-link:not([href="/search"]):hover {
    color: #fff !important;
}

.mega-menu-nav .nav-item.active > .nav-link:not([href="/search"]) {
    color: #fff !important;
    background: transparent !important;
}

.mega-menu-nav .nav-item.active > .nav-link:not([href="/search"])::before {
    opacity: 1;
}

/* ==========================================================================
   MEGA MENU CONTENT STRUCTURE
   ========================================================================== */

.mega-menu-header {
    margin-bottom: 1.5rem;
}

.mega-menu-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #000;
}

.mega-menu-header p {
    font-size: 1rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.mega-menu-content {
    display: flex;
    gap: 2rem;
}

.mega-menu-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.mega-menu-footer a {
    color: #186396;
    text-decoration: none;
    font-weight: 500;
}

/* ==========================================================================
   SOLUTIONS MENU
   ========================================================================== */

.solutions-column {
    flex: 2;
}

.solutions-list-columns {
    columns: 4 !important;
    column-gap: 32px !important;
}

.solutions-list {
    color: #111 !important;
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
    font-weight: 400 !important;
}

.solutions-list li {
    color: #111 !important;
    margin-bottom: 0.5em !important;
    break-inside: avoid !important;
    display: flex !important;
    align-items: flex-start !important;
    font-weight: 400 !important;
    list-style: none !important;
}

.solutions-list li .bullet {
    color: #111 !important;
    margin-right: 0.2em !important;
    flex-shrink: 0 !important;
    font-size: 1.6em !important;
    line-height: 1;
}

.solutions-list li a {
    color: #111 !important;
    font-weight: 400 !important;
    text-decoration: underline !important;
}

ul.solutions-list,
ul.solutions-list-bullets,
.solutions-list,
.solutions-list-bullets,
.solutions-list li,
ul.solutions-list li,
ul.solutions-list-bullets li {
    list-style-type: none !important;
    list-style: none !important;
}

/* ==========================================================================
   PRODUCTS MENU
   ========================================================================== */

.product-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.product-category h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    color: #000;
}

.product-category p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* ==========================================================================
   INDUSTRIES MENU
   ========================================================================== */

.featured-industries {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.industry-card {
    text-align: center;
}



.industry-card h3 {
    font-size: 0.9rem;
    margin: 0;
}

.industry-card a {
    color: #186396;
    text-decoration: none;
}

/* ==========================================================================
   PARTS MENU
   ========================================================================== */

.mega-menu-parts .mega-menu-content {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 2rem;
}

.parts-column h3,
.tools-column h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    color: #000;
}

.parts-column p,
.tools-column p {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.parts-column a,
.tools-column a {
    color: #186396;
    text-decoration: none;
    font-size: 0.9rem;
}

.expert-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   LEARN MENU
   ========================================================================== */

.mega-menu-learn .mega-menu-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: flex-start;
    position: relative;
}

.learn-links h2 {
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    color: #000;
}

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

.learn-links li {
    margin-bottom: 0.5rem;
}

.learn-links a {
    color: #186396;
    text-decoration: none;
    font-size: 0.9rem;
}

.article-readmore .article-arrow-up,
.article-readmore-home .article-arrow-up {
    color: #0073aa;
    font-size: 1.2em;
    transform: rotate(-45deg);
    margin-left: 4px;
    background: none !important;
}

.article-date-home, .article-excerpt-home {
    font-weight: 400 !important;
}

/* ==========================================================================
   EXPERT HELP & CTA BUTTONS
   ========================================================================== */

.expert-help {
    flex: 1;
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.expert-help h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: #000;
}

.expert-photo {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
    overflow: hidden;
}

.cta-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #186396;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.cta-button:hover {
    background: #0d3556;
    color: #fff;
}

/* Mega menu CTA button styling - white with blue outline/text, blue with white text on hover/focus */
.mega-menu .cta-button {
    background: #ffffff;
    color: #186396;
    border: 2px solid #186396 !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mega-menu .cta-button:hover,
.mega-menu .cta-button:focus {
    background: #186396;
    color: #ffffff;
    border-color: #186396;
}

/* ==========================================================================
   HEADER NAVIGATION ALIGNMENT
   ========================================================================== */

.mega-menu-navigation .nav-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header-style-one .nav-bar > ul > li:not(:last-child) {
    margin-right: 0px !important;
}

.header-style-one .nav-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1400px) {
    .mega-menu {
        width: 100%;
        left: 0;
        transform: none;
    }
    .history-style-one .history-data .details p {
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

@media (max-width: 900px) {
    .solutions-list-columns {
        columns: 1 !important;
    }
}

@media (max-width: 768px) {
    .mega-menu {
        position: static;
        min-width: auto;
        max-width: none;
        margin-top: 0;
        border-radius: 0;
    }

    .history-style-one .history-data .details p {
        visibility: visible !important;
        opacity: 100% !important;
    }

    .mega-menu-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .solutions-list {
        columns: 1;
    }
    
    .product-categories,
    .featured-industries,
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   FOOTER CONTACT INFO
   ========================================================================== */

footer .contact-info a {
    color: #fff !important;
    text-decoration: underline !important;
}

/* ==========================================================================
   INDUSTRY IMAGE STYLES
   ========================================================================== */

.industry-image-square {
  width: 120px;
  height: 120px;
  aspect-ratio: 1 / 1;
  min-width: 120px;
  min-height: 120px;
  max-width: 120px;
  max-height: 120px;
  overflow: hidden;
  display: block;
  border-radius: 8px;
  background: #f5f5f5;
  padding: 0;
  position: relative;
}

.industry-image-square img,
.industry-image {
  width: 120px !important;
  height: 120px !important;
  object-fit: cover !important;
  object-position: center;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  max-width: 120px !important;
  max-height: 120px !important;
  border-radius: 8px;
  position: absolute;
  top: 0;
  left: 0;
}

/* ==========================================================================
   NAV STYLES
   ========================================================================== */

#nav-super {
    background: #186396;
}

#nav-main {
    background: #004C7F;
    padding: 10px 10px 10px 10px;
}

#nav-main #nav-logo a img {
    width: 100%;
    max-width: 220px;
}

#nav-main #nav-logo .elementor-widget-image {
    text-align: left;
}
    
@media (min-width: 768px) {
    #nav-main .desktop-only {
        width: 66.666%;
    }
  }

.nav-item[data-menu="search"] {
    margin-left: 10px;
}