/* About Us Mega Menu Styles */
.about-us-mega-menu .about-us-dropdown-content {
    display: flex;
    justify-content: flex-start; /* Align to the left */
    align-items: center;
    height: 100%;
    max-width: 1200px; /* Match site width */
    margin: 0 auto;
    padding: 0 2rem; /* Add horizontal padding */
    gap: 5rem; /* Increase gap between columns */
}

.about-us-mega-menu .about-us-column-main {
    position: relative; /* Ensure positioning context */
    top: -76px; /* Move up by 76px */
    left: -137px; /* Move left by 137px */
}

.about-us-mega-menu .about-us-column-main h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600; /* Semi-bold */
    letter-spacing: 0.5px;
}

.about-us-mega-menu .about-us-column-main a {
    text-decoration: none;
    color: #000;
}

.about-us-mega-menu .about-us-column-links {
    position: relative;
    top: -20px;
}

.about-us-column-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; /* Stack links vertically */
    /* The gap property is replaced by margin-bottom on the li elements for better compatibility. */
}


.about-us-mega-menu .about-us-column-links li {
    margin: 0;
}

.about-us-mega-menu .about-us-column-links a {
    text-decoration: none;
    color: #000;
    font-size: 1rem;
    font-weight: 600; /* Semi-bold */
    letter-spacing: 0.5px;
}

/* Search Dropdown Styles */
.search-dropdown {
    background-color: #ffffff;
    position: absolute;
    top: calc(100% + 30px); /* Position it 30px below the header */
    border-top: 1px solid #000;
    left: 0;
    right: 0;
    z-index: 999;
    height: 260px;
    padding: 60px 60px 30px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;

    /* Animation Properties */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-15px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.search-dropdown.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.search-dropdown-content {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Changed from center to stretch for alignment */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 382px;
}

.search-form-container {
    flex-basis: 50%;
    transform: translate(230px, -20px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.search-form-container h2 {
    font-size: 19px; /* Increased from 15px */
    font-weight: 800;
    color: #000;
    margin: 0 0 5px 0;
}

.search-form-container p {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
}

.search-form-row {
    display: flex;
    align-items: flex-end; /* Align items to the bottom */
    gap: 15px;
}

.search-form-row .form-group {
    display: flex;
    flex-direction: column;
}

.search-form-row label {
    font-size: 12px;
    color: #333;
    margin-bottom: 5px;
    transform: translateY(-20px);
}

.search-form-row input[type="text"] {
    border: none;
    border-bottom: 1px solid #000;
    padding: 5px 0;
    font-size: 16px;
    width: 150px;
    background: transparent;
}

.search-form-row input[type="text"]:focus {
    outline: none;
}

.search-form-row button {
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 15px;
    font-size: 11px;
    cursor: pointer;
}

.search-logo-container {
    flex-basis: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.search-dropdown-logo {
    transform: translate(-204px, -14px);
    height: 136px;
    width: auto;
}

.search-dropdown-logo path,
.search-dropdown-logo polygon {
    fill: #6ebe44; /* Gubersail Green */
}

.search-logo-container img {
    max-width: 100px;
    height: auto;
}

/* Search input field style override */
.search-dropdown .search-field {
    border: none;
    border-radius: 0;
    background-color: transparent;
    padding: 5px 0;
    border-bottom: 2px solid #ccc;
    box-shadow: none;
    outline: none;
    transform: translateY(-18px);
    font-size: 8px; /* Set font size to half */
}

.search-dropdown .search-field::placeholder {
    font-size: 8px; /* Half of the input's 16px font-size */
    color: #999;
}

/* Input field focus style */
.search-dropdown .search-field:focus {
    border-bottom-color: #6ebe44; /* Gubersail Green */
    border-bottom-width: 2px;
}

/* Button selected style */
.form-group button.selected {
    background-color: #6ebe44; /* Gubersail Green */
    color: #ffffff;
    border-color: #6ebe44;
}

/* Tires Mega Menu Styles */
.tires-mega-menu {
    background-color: #ffffff;
    position: absolute;
    top: calc(100% + 30px);
    border-top: 1px solid #000;
    left: 0;
    right: 0;
    z-index: 998;
    height: 260px;
    padding: 40px 60px;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start; /* Align to top */
    justify-content: center;

    /* Animation Properties */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-15px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.tires-mega-menu.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.tires-dropdown-content {
    display: flex;
    justify-content: flex-start;
    gap: 100px; /* Increased space between columns */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

.tires-menu-level-1,
.tires-menu-level-2,
.tires-menu-level-3 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem; /* Consistent gap */
}

.tires-menu-level-1 li,
.tires-menu-level-2 li {
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.tires-menu-level-1 li.active,
.tires-menu-level-2 li.active {
    color: #6ebe44; /* Gubersail Green */
    border-bottom-color: #6ebe44;
}

.tires-menu-level-3 li a {
    text-decoration: none;
    color: #333;
    font-size: 1rem; /* Match level 1/2 */
    font-weight: 400; /* Regular weight */
    transition: color 0.3s ease;
}

.tires-menu-level-3 li a:hover {
    color: #6ebe44;
}

/* JS handles the display property, so we ensure the active one is visible */
.tires-menu-level-2,
.tires-menu-level-3 {
    display: none; /* Hidden by default, JS will show them */
}

