.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--background);
    color: white;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.menu-left, .menu-right, .logo {
    display: flex;
    align-items: center;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
}

.hamburger span {
    background-color: white;
    height: 3px;
    width: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.cta-button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3;
}

.mobile-menu {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: width 0.5s ease;
    padding-top: 60px;
}

.mobile-menu a {
    padding: 15px 25px;
    text-decoration: none;
    font-size: 22px;
    color: white;
    display: block;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: #ddd;
}

.mobile-menu .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .menu-left, .menu-right .cta-button {
        display: none;
    }

    .menu-right .hamburger {
        display: flex;
    }
}

@media screen and (min-width: 768px) {
    .mobile-menu {
        display: none;
    }
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--headings, #000);
}

.navbar a:not(.cta-button) {
    padding: 10px 15px;
    margin: 0 5px;
    transition: background-color 0.3s ease;
}

.navbar a:not(.cta-button):hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

/* Dropdown menu styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
}

.dropdown-caret {
        margin-left: 10px;
        display: inline-block;
        transition: transform 0.2s;
        font-size: 0.8em;
}

.dropdown-caret.open {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: block;
    position: absolute;
    background-color: var(--background);
    top: 100%;
    min-width: 170px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    z-index: 10;
    border-radius: 5px;
    overflow: hidden;
    padding: 12px 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px) scaleY(0.95);
    transition: opacity 0.25s cubic-bezier(.4,0,.2,1), transform 0.4s cubic-bezier(.4,0,.2,1);
}

.dropdown-menu a {
  color: var(--text, #333);
  padding: 12px 16px;
  display: block;
  text-align: left;
  text-decoration: none;
  background: none;
  transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
  background-color: rgba(0,0,0,0.05);
  color: var(--headings, #000);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scaleY(1);
}

/* Flip arrow when dropdown is open (hover/focus) */
.dropdown:hover .dropdown-caret,
.dropdown:focus-within .dropdown-caret {
    transform: rotate(180deg);
}

/* Removed default after, use .dropdown-caret instead */

/* Mobile menu dropdown for workshops page */
.mobile-dropdown {
    position: relative;
}
.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 0;
    color: inherit;
    text-decoration: none;
    font-size: 1.6rem;
}
.mobile-caret {
    margin-left: 8px;
    transition: transform 0.2s;
    display: inline-block;
}
.mobile-caret.open {
    transform: rotate(180deg);
}
.mobile-dropdown-menu {
    display: none;
    flex-direction: column;
    background: #111;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-left: 10px;
    margin-bottom: 8px;
}
.mobile-dropdown-menu.open {
    display: flex;
}
.mobile-dropdown-menu a {
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 1.5rem;
}
.mobile-dropdown-menu a:hover {
    background: rgba(255,255,255,0.05);
}