/* ============================================
   FOOTER STYLES
   ============================================ */

/* Main Footer Section */
.foot-main {
    background-color: #000000;
    padding: 60px 0 40px;
    color: #ffffff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

/* Footer Logo */
.footer-logo {
    flex-shrink: 0;
    max-width: 324px;
}

.footer-logo img {
    width: 100%;
    height: auto;
}

/* Footer Menu Columns */
.footer-menu-columns {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* Main Menu - 4 Column Grid */
.footer-menu-columns .footer-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 160px)) 97px;
    gap: 67px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Top Level Menu Items (Column Headers) */
.footer-menu-columns .footer-menu-grid > li {
    list-style: none;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Top Level Links (Column Headers) - Non-clickable */
.footer-menu-columns .footer-menu-grid > li > a {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 20px;
    color: #ffffff;
    text-transform: capitalize;
    text-decoration: none;
    display: block;
    padding: 0;
    line-height: 1.4;
    white-space: nowrap;
}
/* Arrow toggle button - replaces ::after */
.footer-menu-columns .menu-item-has-children .submenu-arrow-toggle {
    position: absolute;
    right: 5px;
    top: 13px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.footer-menu-columns .menu-item-has-children .submenu-arrow-toggle .arrow-icon {
    width: 8px;
    height: 5px;
    background-image: url('data:image/svg+xml;utf8,<svg width="8" height="5" viewBox="0 0 8 5" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 4.93333L0 0.933333L0.933333 0L4 3.06667L7.06667 0L8 0.933333L4 4.93333Z" fill="white"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.3s ease;
    display: block;
}

.footer-menu-columns .menu-item-has-children.open .submenu-arrow-toggle .arrow-icon {
    transform: rotate(180deg);
}

/* Make sure the menu item is positioned */
.footer-menu-columns .menu-item-has-children {
    position: relative;
}

/* Hide the old CSS arrow if you have one */
.footer-menu-columns .menu-item-has-children > a::after {
    display: none;
}
/* First Level Submenu (Direct children of columns) */
.footer-menu-columns .footer-menu-grid > li > .sub-menu {
    display: block;
    position: static;
    list-style: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* First Level Submenu Items */
.footer-menu-columns .footer-menu-grid > li > .sub-menu > li {
    margin-bottom: 12px;
    display: block;
    position: relative;
}

/* First Level Submenu Links */
.footer-menu-columns .footer-menu-grid > li > .sub-menu > li > a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    line-height: 120%;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: none;
    font-weight: 400;
    cursor: pointer;
}
.footer-menu-columns .footer-menu-grid > li > .sub-menu > li > a:focus{
    border: none!important;
    outline: none!important;
}
.footer-menu-columns .footer-menu-grid > li > .sub-menu > li.menu-item-has-children > a::after {
    content: '';
    width: 8px;
    height: 5px;
    background-image: url('data:image/svg+xml;utf8,<svg width="8" height="5" viewBox="0 0 8 5" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 4.93333L0 0.933333L0.933333 0L4 3.06667L7.06667 0L8 0.933333L4 4.93333Z" fill="white"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.2s ease;
    margin-left: 15px;
    flex-shrink: 0;
}

.footer-menu-columns .footer-menu-grid > li > .sub-menu > li.menu-item-has-children.open > a::after {
    transform: rotate(180deg);
}

/* Second Level Submenu (Nested dropdowns) */
.footer-menu-columns .footer-menu-grid > li > .sub-menu > li > .sub-menu {
    display: none;
    list-style: none;
    margin: 8px 0 0 0;
    padding: 0;
    background: transparent;
}

.footer-menu-columns .footer-menu-grid > li > .sub-menu > li.open > .sub-menu {
    display: block;
}

/* Second Level Submenu Items */
.footer-menu-columns .footer-menu-grid > li > .sub-menu > li > .sub-menu > li {
    margin-bottom: 8px;
}
#menu-new-footer-menu a:focus{
    border: none!important;
    outline: none!important;
}
/* Second Level Submenu Links */
.footer-menu-columns .footer-menu-grid > li > .sub-menu > li > .sub-menu > li > a {
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    line-height: 120%;
    transition: opacity 0.2s ease;
    display: block;
    padding: 0;
    opacity: 0.9;
}

.footer-menu-columns .footer-menu-grid > li > .sub-menu > li > .sub-menu > li > a:hover {
    opacity: 0.7;
    text-decoration: none;
}

/* Hide the last column parent link (Social Media) but keep children visible */
.footer-menu-columns .footer-menu-grid > li:last-child > a {
    display: none!important;
}
.footer-menu-columns .footer-menu-grid > li:last-child > a > ul > li > a{
   display: flex !important
}

.footer-menu-columns .footer-menu-grid > li:last-child > .sub-menu {
    /* Make children visible and positioned like regular column items */
    display: block !important;
    margin-top: 4!important;
    padding-left: 0 !important;
}

.footer-menu-columns .footer-menu-grid > li:last-child > .sub-menu > li {
    margin-bottom: 12px !important;
}

/* Social Media Links - Add icons before text */
/* Target links containing social media keywords */
.footer-menu-columns .footer-menu-grid > li:last-child a[href*="linkedin"]::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z" fill="white"/></svg>');
}

.footer-menu-columns .footer-menu-grid > li:last-child a[href*="twitter"]::before,
.footer-menu-columns .footer-menu-grid > li:last-child a[href*="x.com"]::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" fill="white"/></svg>');
}

.footer-menu-columns .footer-menu-grid > li:last-child a[href*="facebook"]::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z" fill="white"/></svg>');
}

.footer-menu-columns .footer-menu-grid > li:last-child a[href*="youtube"]::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z" fill="white"/></svg>');
}

/* Make social links flex to accommodate icons */
.footer-menu-columns .footer-menu-grid > li:last-child a {
    align-items: center;
    gap: 8px;
}

/* Bottom Footer Bar */
.foot-bottom {
    /*background-color: #7e7e7e;*/
    background-color: #232323;
    border-top: 1px solid #333333;
    padding: 20px 0;
    color: #ffffff;
    font-size: 12px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.copyright {
    color: #7E7E7E;
    font-size: 12px;
    white-space: nowrap;
    text-transform: uppercase;
    margin-left: 53px;
}

.footer-bottom-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    justify-content: flex-end;
}

/* Bottom Menu Horizontal Layout */
.footer-bottom-menu .footer-bottom-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 27px;
    align-items: center;
    flex-wrap: nowrap;
}

.footer-bottom-menu .footer-bottom-links li {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-block;
}

.footer-bottom-menu .footer-bottom-links a {
    color: #ffffff!important;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    display: inline-block;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    font-weight: 400;
    line-height: 1.4;
}

.footer-bottom-menu .footer-bottom-links a:hover {
    opacity: 0.7;
    text-decoration: none;
    background: transparent;
    font-style: normal;
}

/* Country Selector */
.footer-bottom-content .country-selector {
    position: relative;
    z-index: 100;
}

.footer-bottom-content .country-btn {
    background: transparent;
    border-radius: 4px;
    padding: 6px 12px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    transition: background-color 0.2s ease;
    position: relative;
    z-index: 101;
}

.footer-bottom-content .country-btn .flag-icon {
    width: 20px;
    height: 14px;
    object-fit: cover;
}

.footer-bottom-content .country-btn .dropdown-arrow {
    display: flex;
    align-items: center;
    margin-left: 4px;
}

/* Country Dropdown - Default Hidden State */
.footer-bottom-content .country-dropdown,
.footer-bottom-content #intDropdown {
    position: absolute !important;
    bottom: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    top: auto !important;
    background-color: #1a1a1a !important;
    border: 1px solid #333333 !important;
    border-radius: 4px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    min-width: 150px !important;
    max-height: none !important;
    overflow: visible !important;
    z-index: 10000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Country Dropdown - Show State */
.footer-bottom-content .country-dropdown.show,
.footer-bottom-content #intDropdown.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.footer-bottom-content .country-dropdown li {
    list-style: none;
    margin: 0;
}

.footer-bottom-content .country-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.footer-bottom-content .country-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.footer-bottom-content .country-option img {
    width: 20px;
    height: 14px;
    object-fit: cover;
}


/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .footer-content {
        flex-direction: column;
        gap: 40px;
        padding: 0 20px;
    }
    .copyright {
        margin-left: 0;
    }

    .footer-menu-columns{
        width: 100%;
    }
    .footer-menu-columns .footer-menu-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        gap: 40px;
    }
}
@media (max-width: 1200px) {
    .footer-bottom-content {
        flex-direction: column-reverse;
        align-items: center;
        gap: 16px;
    }
    .footer-logo{
        max-width: 229px;
    }
}
@media (max-width: 767px) {
    .footer-bottom-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .footer-menu-columns .menu-item-has-children .submenu-arrow-toggle{
        left: 35%;
        right: unset;
    }
    .footer-bottom-menu {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 0 16px !important;
        width: 100%;
        justify-content: center!important;
    }

    .footer-bottom-menu .footer-bottom-links {
        display: contents !important;
        /* This makes the <ul> "disappear" and its children become direct flex items */
    }

    .footer-bottom-menu .footer-bottom-links li {
        display: inline-block !important;
    }

    .footer-bottom-content .country-selector {
        flex-shrink: 0;
    }

    .footer-bottom-menu .footer-bottom-links a{
        font-size: 10px;
        font-weight: 300;
    }
    .foot-main {
        padding: 40px 0 30px;
    }

    .footer-menu-columns .footer-menu-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Mobile: Make top level items collapsible (first 3 columns only) */
    .footer-menu-columns .footer-menu-grid > li:not(:last-child) {
        position: relative;
    }

    .footer-menu-columns .footer-menu-grid > li:not(:last-child) > a {
        padding: 16px 40px 16px 0;
        pointer-events: auto !important;
        margin-bottom: 0!important;
        cursor: pointer !important;
        position: relative;
        display: block !important;
        font-size: 24px !important;
    }

    /* Add arrow indicator as separate clickable element */
    .footer-menu-columns .footer-menu-grid > li:not(:last-child)::after {
        content: '';
        width: 12px;
        height: 7px;
        background-image: url('data:image/svg+xml;utf8,<svg width="12" height="7" viewBox="0 0 12 7" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 7L0 1L1.4 0L6 4.6L10.6 0L12 1L6 7Z" fill="white"/></svg>');
        background-repeat: no-repeat;
        background-size: contain;
        transition: transform 0.3s ease;
        position: absolute;
        right: 0;
        top: 25px;
        cursor: pointer;
        padding: 7px 10px;
    }

    .footer-menu-columns .footer-menu-grid > li:not(:last-child).mobile-open::after {
        transform: translateY(-50%) rotate(180deg);
    }

    /* Hide submenus by default on mobile (first 3 columns) */
    .footer-menu-columns .footer-menu-grid > li:not(:last-child) > .sub-menu {
        display: none;
        padding: 0 0 16px 0;
    }

    .footer-menu-columns .footer-menu-grid > li:not(:last-child).mobile-open > .sub-menu {
        display: block;
    }

    /* Last column (social media) - special treatment */
    .footer-menu-columns .footer-menu-grid > li:last-child {
        border-bottom: none;
    }

    /* Hide text on social links, keep only icons */
    .footer-menu-columns .footer-menu-grid > li:last-child a {
        font-size: 0 !important;
        width: 40px !important;
        height: 40px !important;
        display: none !important;
        justify-content: center;
        align-items: center;
        padding: 0 !important;
        margin: 0 !important;
    }
    .footer-menu-columns .footer-menu-grid > li:last-child ul li a {
        display: inline-flex !important;
    }

    .footer-menu-columns .footer-menu-grid > li:last-child a::before {
        width: 24px !important;
        height: 24px !important;
        margin: 0 !important;
    }

    /* Make social icons horizontal */
    .footer-menu-columns .footer-menu-grid > li:last-child > .sub-menu {
        display: flex !important;
        flex-direction: row !important;
        gap: 12px !important;
        margin-top: 0 !important;
        padding: 0 !important;
    }

    .footer-menu-columns .footer-menu-grid > li:last-child > .sub-menu > li {
        margin-bottom: 0 !important;
    }

    .footer-bottom-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        width: 100%;
    }

    .footer-bottom-menu .footer-bottom-links {
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .copyright {
        order: 2;
        width: 100%;
        font-size: 10px;
        text-align: center;
    }

    .footer-bottom-content .country-selector {
        order: 1;
    }
    .footer-bottom-menu .footer-bottom-links a{
        font-size: 10px;
        font-weight: 300;
    }
}

@media (max-width: 480px) {
    .footer-bottom-menu .footer-bottom-links {
        gap: 20px;
        align-items: flex-start;
        justify-content: center;
    }

    .footer-bottom-menu .footer-bottom-links li {
        display: block;
    }
}


@media only screen and (min-width:1024px) and (max-width:1280px) {
    .footer-menu-columns .footer-menu-grid > li > .sub-menu > li:has(button) {
        display: flex;
    }

    .footer-menu-columns .footer-menu-grid > li > .sub-menu > li:has(button) button {
        position: static;
        padding-top: 16px;
    }

}
/* Clear utility */
.clear {
    clear: both;
}

.mobile-only {
    display: none;
}

@media (max-width: 767px) {
    .mobile-only {
        display: block;
    }
}