/* Custom Mega Menu Styles */
.menu-animate-3 {
    position: static !important;
    /* Allow full width dropdown */
}

.custom-mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #1a1a1a;
    z-index: 9999;
    padding: 40px 0;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-top: 3px solid #ffde00;
    /* Yellow top border */
}

/* Bridge the gap between menu item and dropdown */
.custom-mega-menu::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 30px;
    background: transparent;
}

.menu-animate-3:hover .custom-mega-menu {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}
.header .nav-bar .menu > ul > li:hover .custom-mega-menu {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega-menu-sidebar {
    border-right: 1px solid #333;
    padding-right: 20px;
}

.mega-menu-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-sidebar li {
    margin-bottom: 20px;
}

.mega-menu-sidebar a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    display: block;
    transition: color 0.3s;
    text-transform: uppercase;
    font-weight: 600;
}

.mega-menu-sidebar a:hover,
.mega-menu-sidebar a.active {
    color: #ffde00;
}

.mega-menu-sidebar .brand-logo {
    display: block;
    margin-bottom: 5px;
    max-height: 30px;
}

.mega-menu-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-content li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 15px;
}

.mega-menu-content li::before {
    content: "•";
    color: #666;
    position: absolute;
    left: 0;
}

.mega-menu-content li.highlight {
    color: #ffde00;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
}

.mega-menu-content li.highlight::before {
    color: #ffde00;
}

.mega-menu-content a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.mega-menu-content a:hover {
    color: #fff;
}

.mega-menu-image {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.mega-menu-image img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

/* Hover Effects - Passive State */
.mega-menu-sidebar ul.is-hovering li a {
    opacity: 0.4;
    transition: opacity 0.3s;
}

.mega-menu-sidebar ul.is-hovering li a:hover,
.mega-menu-sidebar ul.is-hovering li a.active {
    opacity: 1;
    color: #ffde00;
}

/* Product List Passive State */
.mega-menu-content ul.is-hovering li {
    opacity: 0.4;
    transition: opacity 0.3s;
}

.mega-menu-content ul.is-hovering li:hover,
.mega-menu-content ul.is-hovering li.active-item {
    opacity: 1;
}

/* Ensure highlight class keeps its style but respects opacity */
.mega-menu-content li.highlight {
    color: #ffde00;
}

/* SOLUTIONS Mega Menu Styles */
.menu-animate-4 {
    position: static !important;
}

.menu-animate-4:hover .custom-mega-menu {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.solutions-mega-menu {
    text-align: left;
}

.solutions-mega-menu .menu-header-yellow {
    color: #ffde00;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.solutions-mega-menu .menu-sub-header {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.solutions-mega-menu .menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.solutions-mega-menu .menu-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.solutions-mega-menu .menu-list li a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    /* display: block; Removed to prevent line break with flexbox */
    line-height: 1.2;
    /* Adjust for better alignment with dot */
}

.solutions-mega-menu .menu-list li a:hover {
    color: #fff;
}

.solutions-mega-menu .menu-list li::before {
    content: "•";
    color: #666;
    margin-right: 8px;
    line-height: 1.2;
    /* Match text line-height */
    flex-shrink: 0;
    /* Prevent dot from shrinking */
}

  /* Add chevron indicators for items with dropdowns */
    .menu>ul>li:has(.custom-mega-menu)>a::after {
        content: "";
        display: inline-block;
        width: 8px;
        height: 8px;
        margin-left: 10px;
        border-right: 2px solid #6E7279;
        border-bottom: 2px solid #6E7279;
        transform: rotate(45deg);
        transition: transform 0.3s;
        vertical-align: middle;
		translate: 0 -50%;
    }

/* Responsive adjustments */
@media (max-width: 1099px) {

    /* Changed from 991px to 1099px to align with _header.scss */
    .menu-animate-3:hover .custom-mega-menu,
    .menu-animate-4:hover .custom-mega-menu,
    .menu-animate-5:hover .custom-mega-menu {
        display: none;
        /* Disable hover on mobile */
    }

    .custom-mega-menu {
        display: none;
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        box-sizing: border-box;
        margin-top: 10px;
        transform: initial !important;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(164, 164, 164, 0.3);
        box-shadow: none;
        padding: 15px 10px;
        opacity: 1;
        pointer-events: all;
        z-index: 1;
    }

  

    .menu>ul>li.active>a::after,
    .menu>ul>li:hover>a::after {
        border-color: #fff;
    }

    .custom-mega-menu::before {
        display: none;
    }

    .mega-menu-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(164, 164, 164, 0.3);
        padding-right: 0;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    .mega-menu-sidebar li {
        margin-bottom: 15px;
        text-align: left;
    }

    .mega-menu-sidebar a {
        font-size: 16px;
    }

    .mega-menu-content {
        margin-bottom: 15px;
    }

    .mega-menu-content li {
        text-align: left;
        padding-left: 20px;
    }

    .mega-menu-content a {
        font-size: 16px;
        line-height: 1.4;
    }

    .mega-menu-image {
        display: none;
        /* Hide images on mobile for cleaner look */
    }

    .solutions-mega-menu .col-lg-4 {
        margin-bottom: 25px;
    }

    .solutions-mega-menu h4 {
        text-align: left;
        margin-bottom: 10px;
    }

    .solutions-mega-menu h5 {
        text-align: left;
        margin-top: 15px;
        margin-bottom: 10px;
    }

    .graco-mega-menu .row {
        flex-direction: column;
    }

    .graco-mega-menu .mega-menu-image {
        display: none;
    }

    .graco-mega-menu .menu-list {
        margin-bottom: 20px;
    }
}

/* GRACO Mega Menu Styles */
.menu-animate-5 {
    position: static !important;
}

.menu-animate-5:hover .custom-mega-menu {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.graco-mega-menu {
    text-align: left;
}

.graco-mega-menu .graco-logo {
    max-height: 40px;
    margin-bottom: 10px;
}

.graco-mega-menu .menu-header-yellow {
    color: #ffde00;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    display: inline-block;
    width: 100%;
}

.graco-mega-menu .menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.graco-mega-menu .menu-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.graco-mega-menu .menu-list li a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    line-height: 1.2;
}

.graco-mega-menu .menu-list li a:hover {
    color: #fff;
}

.graco-mega-menu .menu-list li::before {
    content: "•";
    color: #666;
    margin-right: 8px;
    line-height: 1.2;
    flex-shrink: 0;
}

.graco-mega-menu .menu-list li.highlight a {
    color: #ffde00;
}

.graco-mega-menu .menu-list li.highlight::before {
    color: #ffde00;
}

/* Related Content Section Styles */
.related-content-section {
    padding: 60px 0;
    background-color: #fff;
}
/*
.related-content-section .container {
    padding-left: 150px;
    padding-right: 150px;
}
*/
.related-content-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.related-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 30px;
    height: 300px;
    /* Fixed height for consistency */
}

.related-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover img {
    transform: scale(1.05);
}

.related-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
}

.related-card .date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 12px;
    border-radius: 2px;
}

.related-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.related-card p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Video Card Specifics */
.video-card .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.video-card:hover .play-btn {
    background: rgba(255, 222, 0, 0.8);
    border-color: #ffde00;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card .play-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
    margin-left: 3px;
    /* Optical center adjustment */
}

.video-card:hover .play-btn svg {
    fill: #000;
}

/* Pulse animation for play button */
.video-card .play-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        width: 100%;
        height: 100%;
        opacity: 1;
    }

    100% {
        width: 160%;
        height: 160%;
        opacity: 0;
    }
}

/* New Footer Styles */
.new-footer {
    background-image: url('../img/footer-bg-new.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding-top: 60px;
    padding-bottom: 20px;
    font-size: 13px;
    position: relative;
}

.new-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Dark overlay to ensure text readability */
    z-index: 1;
}

.new-footer .container {
    position: relative;
    z-index: 2;
    padding-left: 5%;
    padding-right: 5%;
}

.new-footer a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.new-footer a:hover {
    color: #fff;
}

/* Contact Page Styles */
.location-item h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.location-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.location-item .map-link {
    display: inline-flex;
    align-items: center;
    color: #ffde00;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.location-item .map-link .icon {
    margin-right: 5px;
}

.location-item .map-link:hover {
    text-decoration: underline;
}

/* Footer Top Logos */
.footer-top-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-top-logos .main-logo img {
    height: 40px;
}

.footer-top-logos .brand-logos {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-top-logos .brand-logos img {
    height: 25px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-top-logos .brand-logos img:hover {
    opacity: 1;
}

/* Hero Slider Animations */
.typewriter-text {
    border-right: 2px solid #ffde00;
    white-space: nowrap;
    overflow: hidden;
    animation: blink-cursor 0.75s step-end infinite;
}

@keyframes blink-cursor {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: #ffde00
    }
}

/* Button Animations */
.btn-set a {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-set a::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-set a:hover::after {
    left: 100%;
}

.btn-set a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Pulse animation for specific buttons if needed */
@keyframes pulse-btn {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.btn-set a.pulse {
    animation: pulse-btn 2s infinite;
}

/* Main Logo Animation */
.header .logo img {
    transition: transform 0.3s ease;
}

.header .logo img:hover {
    transform: scale(1.05);
}

/* Footer Columns */
.footer-columns h5,
.footer-columns h6 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-columns p {
    color: #999;
    margin-bottom: 20px;
    line-height: 1.5;
}

.footer-columns a.map-link {
    color: #ffde00;
    font-weight: 600;
}

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

.footer-columns ul li {
    margin-bottom: 8px;
}

.footer-columns ul li a {
    display: block;
}

.footer-columns ul li a::before {
    content: '/ ';
    color: #666;
}

/* Footer Middle Bar (Contact & Subscribe) */
.footer-middle-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-contact-info {
    display: flex;
    gap: 30px;
}

.footer-contact-info div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-info i,
.footer-contact-info svg {
    color: #fff;
    font-size: 16px;
}

.footer-subscribe {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-subscribe form {
    display: flex;
}

.footer-subscribe input {
    background: transparent;
    border: 1px solid #666;
    padding: 8px 15px;
    color: #fff;
    font-size: 12px;
    border-right: none;
    outline: none;
    width: 250px;
}

.footer-subscribe button {
    background: #fff;
    color: #000;
    border: 1px solid #fff;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.footer-subscribe button:hover {
    background: #e6e6e6;
}

/* Footer Bottom */
.footer-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    position: relative;
}

.footer-bottom-links a:not(:last-child)::after {
    content: '/';
    position: absolute;
    right: -12px;
    color: #666;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: transform 0.3s, background 0.3s;
}

.footer-socials a:hover {
    transform: translateY(-3px);
    background: #ffde00;
}

.footer-socials svg {
    width: 14px;
    height: 14px;
}