/* ═══════════════════════════════════════════════════════
   Trébol Mega Menú — Front-end
   ═══════════════════════════════════════════════════════ */

:root {
    --tmm-green: #24AF0F;
    --tmm-green-dark: #1e9a0d;
    --tmm-dark: #2C2A29;
    --tmm-gray: #6b6b6b;
    --tmm-light: #f7f8f7;
    --tmm-border: #e5e5e5;
    --tmm-radius: 6px;
}

/* ── Wrapper ── */
.tmm-wrapper {
    position: relative;
    z-index: 990;
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Navbar ── */
.tmm-navbar {
    background: #fff;
    border-bottom: 1px solid var(--tmm-border);
}
.tmm-navbar-inner {
    display: flex;
    align-items: stretch;
}
.tmm-cat-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 22px;
    min-height: 48px;
    background: var(--tmm-green);
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1;
}
.tmm-cat-toggle:hover,
.tmm-cat-toggle:focus {
    background: var(--tmm-green-dark);
}
.tmm-cat-toggle[aria-expanded="true"] {
    background: var(--tmm-green-dark);
}
.tmm-cat-toggle-bars {
    font-size: 16px;
}

/* ── Top links ── */
.tmm-toplinks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
}
.tmm-toplinks li {
    display: flex;
}
.tmm-toplinks li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 20px;
    color: var(--tmm-dark);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color .15s, background .15s;
    white-space: nowrap;
}
.tmm-toplinks li a:hover {
    color: var(--tmm-green);
    background: var(--tmm-light);
}
.tmm-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    line-height: 1.5;
    vertical-align: middle;
}

/* ── Mega dropdown ── */
.tmm-mega {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0,0,0,.14);
    border: 1px solid var(--tmm-border);
    border-top: 2px solid var(--tmm-green);
    border-radius: 0 0 var(--tmm-radius) var(--tmm-radius);
    animation: tmmSlideDown .2s ease;
}
.tmm-mega--open {
    display: block;
}
@keyframes tmmSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tmm-mega-inner {
    display: flex;
    min-height: 340px;
    max-height: 520px;
}

/* ── Sidebar ── */
.tmm-sidebar {
    flex: 0 0 230px;
    width: 230px;
    background: var(--tmm-light);
    border-right: 1px solid var(--tmm-border);
    overflow-y: auto;
    border-radius: 0 0 0 var(--tmm-radius);
}
.tmm-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}
.tmm-sidebar-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    color: var(--tmm-dark);
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    border-left: 3px solid transparent;
    transition: all .12s;
}
.tmm-sidebar-item a:hover,
.tmm-sidebar-item--active a {
    color: var(--tmm-green);
    background: #fff;
    border-left-color: var(--tmm-green);
}
.tmm-sidebar-icon {
    flex: 0 0 22px;
    width: 22px;
    text-align: center;
    font-size: 17px;
}
.tmm-sidebar-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tmm-sidebar-arrow {
    font-size: 11px;
    opacity: .3;
    transition: opacity .15s;
}
.tmm-sidebar-item--active .tmm-sidebar-arrow {
    opacity: 1;
    color: var(--tmm-green);
}

/* ── Content panels ── */
.tmm-content {
    flex: 1;
    min-width: 0;
    padding: 24px 30px;
    overflow-y: auto;
}
.tmm-panel {
    display: none;
}
.tmm-panel--active {
    display: block;
    animation: tmmFadeIn .15s ease;
}
@keyframes tmmFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.tmm-panel-header {
    margin-bottom: 18px;
}
.tmm-panel-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--tmm-green);
    text-decoration: none !important;
}
.tmm-panel-title:hover {
    text-decoration: underline !important;
}
.tmm-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 28px;
}
.tmm-column-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--tmm-dark);
    text-decoration: none !important;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--tmm-border);
}
.tmm-column-title:hover {
    color: var(--tmm-green);
}
.tmm-column-items {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tmm-column-items li a {
    display: block;
    padding: 4px 0;
    font-size: 13px;
    color: var(--tmm-gray);
    text-decoration: none !important;
    transition: color .12s;
}
.tmm-column-items li a:hover {
    color: var(--tmm-green);
}

/* ── Overlay ── */
.tmm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.25);
    z-index: 989;
    transition: opacity .2s;
}
.tmm-overlay--visible {
    display: block;
}

/* ── Mobile menu inside #iqitmegamenu-mobile ── */
.tmm-mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tmm-mobile-menu > ul > li > a,
.tmm-mob-top-links li a {
    display: block;
    padding: 11px 15px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tmm-dark);
    text-decoration: none !important;
    border-bottom: 1px solid var(--tmm-border);
}
.tmm-mob-top-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tmm-mobile-menu > ul > li > a i,
.tmm-mob-top-links li a i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}
.tmm-mobile-menu ul ul {
    display: none;
}
.tmm-mobile-menu li.tmm-mob-open > ul {
    display: block;
}
.tmm-mobile-menu ul ul a {
    padding-left: 32px;
    font-weight: 400;
    font-size: 13px;
}
.tmm-mobile-menu ul ul ul a {
    padding-left: 48px;
    font-size: 12px;
    color: var(--tmm-gray);
}
.tmm-mobile-menu .mm-expand {
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
}
.tmm-mobile-menu li {
    position: relative;
}
.tmm-mobile-menu .mm-expand .close-icon {
    display: none;
}
.tmm-mobile-menu li.tmm-mob-open > .mm-expand .expand-icon {
    display: none;
}
.tmm-mobile-menu li.tmm-mob-open > .mm-expand .close-icon {
    display: inline;
}

/* ── Responsive ── */
@media (max-width: 1199px) {
    .tmm-columns {
        grid-template-columns: repeat(3, 1fr);
    }
    .tmm-sidebar {
        flex-basis: 200px;
        width: 200px;
    }
}

@media (max-width: 991px) {
    .tmm-wrapper {
        display: none !important;
    }
    .tmm-overlay {
        display: none !important;
    }
}
