/* ========================
   TOP BAR
======================== */
.top-bar {
    background: #111827;
    border-bottom: 1px solid #1f2937;
    padding: 0.5rem 0;
}

.top-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Contact icons + text */
.top-bar-contact {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.top-bar-item:hover {
    color: #ffffff;
}

.top-bar-item svg {
    flex-shrink: 0;
    stroke: #6366f1;
}

/* WordPress search form — override default styles */
.top-bar-search {
    display: flex;
    align-items: center;
}

/* WP default search form wrapper */
.top-bar-search .search-form,
.top-bar-search form[role="search"] {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Search input */
.top-bar-search input[type="search"],
.top-bar-search .search-field {
    background: #1f2937;
    border: 1px solid #374151;
    border-right: none;
    border-radius: 0.375rem 0 0 0.375rem;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
    width: 200px;
    outline: none;
    transition: border-color 0.2s, width 0.3s;
}

.top-bar-search input[type="search"]::placeholder,
.top-bar-search .search-field::placeholder {
    color: #6b7280;
}

.top-bar-search input[type="search"]:focus,
.top-bar-search .search-field:focus {
    border-color: #6366f1;
    width: 260px;
}

/* Search submit button */
.top-bar-search button[type="submit"],
.top-bar-search input[type="submit"],
.top-bar-search .search-submit {
    background: #6366f1;
    border: 1px solid #6366f1;
    border-radius: 0 0.375rem 0.375rem 0;
    color: #ffffff;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    transition: background 0.2s;
    white-space: nowrap;
    line-height: 1.5;
}

.top-bar-search button[type="submit"]:hover,
.top-bar-search input[type="submit"]:hover,
.top-bar-search .search-submit:hover {
    background: #4f51e8;
    border-color: #4f51e8;
}

/* Hide top-bar contact text on very small screens, keep icons */
@media (max-width: 480px) {
    .top-bar-item span {
        display: none;
    }

    .top-bar-search input[type="search"],
    .top-bar-search .search-field {
        width: 130px;
    }

    .top-bar-search input[type="search"]:focus,
    .top-bar-search .search-field:focus {
        width: 160px;
    }
}

@media (max-width: 360px) {
    .top-bar-contact {
        gap: 0.75rem;
    }
}

/* ========================
   Header
======================== */
header {
    background: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

@media (max-width: 1023px) {
    header {
        position: relative;
    }
}

nav {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-container {
    display: flex;
    height: 80px;
        max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    align-items: center;
    justify-content: space-between;
}

/* ========================
   Logo
======================== */
.tribe-events-widget-events-list__event-date-tag.tribe-common-g-col {
    background: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
    margin-right: 12px;
}
.tribe-events-widget-events-list__event-header {
    box-shadow: none;
    border: 1px solid #f4f4f4 !important;
    padding: 8px 20px !important;
    border-radius: 6px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon a img {
    width: 70px;
}

@media (max-width: 900px) {
    .logo-icon a img {
        width: 60px;
    }
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    line-height: 2rem;
    color: #111827;
}

@media (min-width: 640px) {
    .logo-text {
        font-size: 1.5rem;
    }
}

/* ========================
   Desktop Navigation
======================== */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #374151;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s;
}

.nav-item:hover {
    color: #7a7bda;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    color: #374151;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #7a7bda;
}

.chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.chevron.rotated {
    transform: rotate(180deg);
}

/* cta-button class — used via WordPress menu CSS Classes field */
.cta-button {
    border-radius: 0.5rem;
    background: #7a7bda;
    padding: 0.625rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: white !important;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.cta-buttons .cta-button:hover {
    background: #6a6bca;
    color: white !important;
}

/* ========================
   Mobile Menu Button
======================== */
.mobile-menu-button {
    display: block;
    background: none;
    border: none;
    color: #374151;
    cursor: pointer;
    padding: 0.5rem;
}

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

/* ========================
   Mobile Navigation
======================== */
.mobile-nav {
    border-top: 1px solid #e5e7eb;
    padding: 1rem 0;
    display: none;
}

.mobile-nav.active {
    display: block;
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none !important;
    }
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-accordion {
    border-bottom: none;
}

.mobile-accordion-button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-family: 'Inter', sans-serif;
    color: #374151;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
}

.mobile-accordion-button:hover {
    color: #7a7bda;
}

.mobile-accordion-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s, opacity 0.3s;
}

.mobile-accordion-content.active {
    max-height: 500px;
    opacity: 1;
}

.mobile-accordion-inner {
    padding-bottom: 1rem;
    padding-left: 1rem;
}

.mobile-column {
    margin-bottom: 1rem;
}

.mobile-column h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    color: #111827;
    margin-bottom: 0.5rem;
}

.mobile-column ul {
    list-style: none;
}

.mobile-column li {
    margin-bottom: 0.5rem;
}

.mobile-column a {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #4b5563;
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
}

.mobile-column a:hover {
    color: #7a7bda;
}

.mobile-simple-link {
    padding: 0.75rem 0;
    font-family: 'Inter', sans-serif;
    color: #374151;
    text-decoration: none;
    display: block;
}

.mobile-simple-link:hover {
    color: #7a7bda;
}

.mobile-cta {
    margin-top: 0.5rem;
    border-radius: 0.5rem;
    background: #7a7bda;
    padding: 0.625rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: white;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
}

.mobile-cta:hover {
    background: #6a6bca;
}

/* ========================
   Mega Menu Dropdown
======================== */
.mega-menu {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px solid #f3f4f6;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s;
    pointer-events: none;
}

.mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-menu-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1023px) {
    .mega-menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mega-menu-column:empty {
    min-height: 1px;
}

.mega-subheading {
    margin-bottom: 0.75rem;
}

.mega-subheading a {
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    color: #111827;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}

.mega-subheading a:hover {
    color: #7a7bda;
}

.sub-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-top: 0.5rem;
}

ul.sub-menu-list.nested-deep {
    margin-left: 14px !important;
    padding-right: 0px !important;
    padding: 0px !important;
}

.sub-menu-item {
    margin-bottom: 0.5rem;
}

.sub-menu-item a {
    font-family: 'Inter', sans-serif;
    color: #4b5563;
    text-decoration: none;
    display: block;
    padding: 0.35rem 0.75rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.sub-menu-item a:hover {
    color: #7a7bda;
    background: #f9fafb;
    transform: translateX(4px);
}

.sub-menu-list.nested-deep {
    border-left: 3px solid #f4f4f4;
    padding-left: 0.875rem;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}

.mega-menu-border {
    height: 0.25rem;
    background: linear-gradient(to right, #7a7bda, #a855f7, #ec4899);
}

/* ========================
   Mobile accordion row
======================== */
.mobile-accordion-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-accordion-link {
    flex: 1;
    padding: 0.75rem 0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #374151;
    text-decoration: none;
}

.mobile-accordion-link:hover {
    color: #7a7bda;
}

.mobile-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #374151;
    flex-shrink: 0;
}

.mobile-accordion-toggle:hover {
    color: #7a7bda;
}

.mobile-menu-list,
.mobile-menu-list ul {
    list-style: none !important;
}

.mobile-menu-list li {
    list-style: none !important;
}

#s {
    width: 100%;
    max-width: 300px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

#s:focus {
    border-color: #000;
}