/* Dropdown Menu - Isolated Styles with All Items Visible */
.gg-dropdown-system {
    font-family: Arial, sans-serif;
    font-weight: bold;
}

.gg-dropdown-system *,
.gg-dropdown-system *:before,
.gg-dropdown-system *:after {
    box-sizing: border-box;
}

.gg-dropdown-system .dropdown-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    position: relative;
    padding: 4px;
    max-width: 980px;
    margin: 0 auto;
    z-index: 9998;
}

.gg-dropdown-system .dropdown-container {
    width: calc(50% - 5px);
    position: relative;
    min-width: 150px;
    z-index: 9999;
}

.gg-dropdown-system .dropdown-btn {
    width: 100%;
    padding: 10px;
    background-color: lightgray;
    color: darkblue;
    border: 4px solid darkblue;
    border-radius: 25px;
    cursor: pointer;
    text-align: center;
    font-size: 18px;
    transition: all 0.3s ease;
    outline: none;
    position: relative;
    z-index: 10000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: bold;
}

.gg-dropdown-system .dropdown-btn:hover {
    background-color: darkblue;
    color: skyblue;
}

.gg-dropdown-system .dropdown-content {
    display: none;
    position: absolute;
    background-color: lightgray;
    width: calc(200% + 10px);
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10001;
    /* Remove max-height constraint to show all items */
    border: 4px solid darkblue;
    border-radius: 25px;
    padding: 0;
    top: calc(100% - 4px);
}

.gg-dropdown-system .scroll-container {
    /* Remove max-height constraint and overflow settings */
    padding: 10px 10px 10px 15px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
}

.gg-dropdown-system .dropdown-container:hover .dropdown-content {
    display: block !important;
}

.gg-dropdown-system #dropdown1 {
    left: 0;
}

.gg-dropdown-system #dropdown2 {
    right: 0;
}

.gg-dropdown-system .dropdown-content a {
    color: darkblue;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    text-align: center;
    font-weight: bold;
    border-radius: 25px;
}

.gg-dropdown-system .dropdown-content a:hover {
    background-color: darkblue;
    color: skyblue;
    border-radius: 25px;
}

.gg-dropdown-system .show {
    display: block;
}

.menu-item:hover {
    background-color: darkblue;
    color: lightskyblue;
    border-radius: 25px;
}

.menu-item:hover a {
    color: lightskyblue;
}

a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border-radius: 25px;
}

a:hover {
    color: inherit;
    text-decoration: underline;
}
/* Specific first dropdown targeting */
.gg-dropdown-system .dropdown-content:first-of-type .scroll-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Default 3 columns */
    gap: 5px;
}

/* Desktop: 1st, 3rd, and 5th items span full width in first dropdown */
.gg-dropdown-system .dropdown-content:first-of-type .scroll-container .menu-item:nth-child(1),
.gg-dropdown-system .dropdown-content:first-of-type .scroll-container .menu-item:nth-child(3),
.gg-dropdown-system .dropdown-content:first-of-type .scroll-container .menu-item:nth-child(5) {
    grid-column: span 3; /* Spans all 3 columns */
    font-size: 24px; /* Increased font size for full-width items */
    font-weight: bold; /* Make it bolder */
    text-transform: uppercase; /* Optional: make text uppercase */
    letter-spacing: 1px; /* Optional: add some letter spacing */
}

/* Mobile: 1st, 3rd, and 5th items span 2 columns in first dropdown */
@media screen and (max-width: 768px) {
    .gg-dropdown-system .dropdown-content:first-of-type .scroll-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    }

    .gg-dropdown-system .dropdown-content:first-of-type .scroll-container .menu-item:nth-child(1),
    .gg-dropdown-system .dropdown-content:first-of-type .scroll-container .menu-item:nth-child(3),
    .gg-dropdown-system .dropdown-content:first-of-type .scroll-container .menu-item:nth-child(5) {
        grid-column: span 2; /* Spans 2 columns on mobile */
        font-size: 22px; /* Slightly smaller on mobile, but still larger */
    }
}

/* Optional: Hover effect for full-width items */
.gg-dropdown-system .dropdown-content:first-of-type .scroll-container .menu-item:nth-child(1):hover,
.gg-dropdown-system .dropdown-content:first-of-type .scroll-container .menu-item:nth-child(3):hover,
.gg-dropdown-system .dropdown-content:first-of-type .scroll-container .menu-item:nth-child(5):hover {
    background-color: rgba(0, 0, 139, 0.1); /* Subtle hover effect */
}



.gg-dropdown-system .dropdown-content a {
    color: darkblue;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    text-align: center;
    font-weight: bold;
    border-radius: 25px;

    /* New border properties */
    border: 2px solid darkblue; /* Adds a 2px dark blue border to each item */
    box-sizing: border-box; /* Ensures border doesn't affect overall layout */
}

.gg-dropdown-system .dropdown-content a:hover {
    background-color: darkblue;
    color: skyblue;
    border-radius: 25px;
    border-color: skyblue; /* Optional: changes border color on hover */
}
.gg-dropdown-system .scroll-container {
    padding: 10px 10px 10px 15px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3 columns by default */
    gap: 5px;
}

