.totl-footer-course-cats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;              /* horizontal layout for footer; change to block for vertical */
    flex-wrap: wrap;
    justify-content: center;    /* or space-between, etc. */
    gap: 10px;                  /* space between items */
}

.totl-footer-course-cats li {
    margin: 0;
}

.totl-footer-course-cats a {
    text-decoration: none;
    color: #333;                /* match your footer colors */
    font-size: 16px;
    padding: 8px 12px;
    transition: color 0.2s ease;
}

.totl-footer-course-cats a:hover {
    color: #8cc500;             /* your accent color */
}

/* Optional: Mobile stacking */
@media (max-width: 768px) {
    .totl-footer-course-cats {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

/* Main menu layout */
.totl-custom-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.totl-custom-menu li {
    position: relative;
}

.totl-custom-menu a {
    text-decoration: none;
    color: #333;
    padding: 10px 20px;
    display: block;
    font-weight: 500;
    transition: color 0.2s ease;
}

.totl-custom-menu a:hover {
    color: #8cc500; /* or your brand color */
}

/* Mega menu trigger */
.totl-custom-menu li:hover > .mega-menu {
    display: block;
}

/* Mega menu container */
.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    width: 600px;                /* wider to comfortably fit 2 columns + padding */
    max-width: 95vw;             /* safe on mobile */
    z-index: 1000;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    overflow: hidden;
}

/* Content wrapper */
.mega-menu-content {
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

/* Banner with background image */
.mega-menu-banner {
    min-height: 140px;           /* taller for better impact */
    background-image: url('/wp-content/uploads/2026/02/4.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 10px 10px 0 0;
    position: relative;
}

.mega-menu-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35); /* stronger overlay for better text readability */
    z-index: 1;
}

.mega-menu-banner > * {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Categories grid – 2 columns */
.categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem 2rem;
}

/* Each column */
.category-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Accordion item 
.accordion-item {
    border-bottom: 1px solid #eee;
}*/

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    transition: color 0.2s ease;
	font-size: 14px;
}

.accordion-header .parent-link {
    color: inherit;
    text-decoration: none;
    flex: 1;
    display: block;
}

.accordion-header:hover {
    color: #8cc500;
}

.toggle-icon {
    font-size: 1.4rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    color: #666;
}

.accordion-toggle:checked + .accordion-header .toggle-icon {
    transform: rotate(45deg); /* + → × */
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, padding 0.35s ease-out;
    padding: 0;
}

.accordion-toggle:checked ~ .accordion-content {
    max-height: 800px;        /* large enough for most sub-category lists */
    padding: 0 0 1rem 0;
}

.accordion-content a {
    display: block;
    padding: 0.6rem 0;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
	font-size: 14px;
}

.accordion-content a:hover {
    color: #8cc500;
    padding-left: 8px;
}

/* Optional static links area */
.mega-menu-links {
    padding: 1rem 2rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.mega-menu-links ul {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.mega-menu-links a {
    color: #53c510;
    font-weight: 500;
}

/* Mobile responsiveness */
@media (max-width: 992px) {
    .mega-menu {
        width: 100%;
        left: 0;
        right: 0;
        margin: 0 auto;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
}