/**
 * TV7 / BlueCherry Mega Menu skin
 * Restyles the cherry-mega-menu "Programacioni" dropdown (.mega-sub) to the
 * TV7 brief design: white rounded panel, Tabler icon rows, green featured card.
 * Brand: cyan #15ABDD, green #4CAF50
 */

:root{
    --tv7-cyan: #15ABDD;
    --tv7-cyan-dark: #0E89B8;
    --tv7-cyan-soft: #E7F7FC;
    --tv7-green: #4CAF50;
    --tv7-green-dark: #3C9540;
    --tv7-green-soft: #EAF6EB;
    --tv7-green-text: #1f3a20;
    --tv7-text: #1f2a37;
    --tv7-muted: #6b7280;
    --tv7-border: rgba(15, 23, 42, .08);
}

/* PANEL → modern white card (override the flat cyan background).
   We KEEP cherry-mega-menu's native float-column layout (menu-columns-7 / -5)
   and just clear the floats — using flex here made the columns overlap. */
.cherry-mega-menu-sub.mega-sub{
    background: #fff !important;
    border: 1px solid var(--tv7-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 44px rgba(20, 140, 184, .16) !important;
    padding: 14px !important;
}
.cherry-mega-menu-sub.mega-sub::after{ content: ""; display: table; clear: both; }

/* The two columns inside the panel (keep cherry's float:left + % widths) */
.cherry-mega-menu-sub.mega-sub > .cherry-mega-menu-sub-item{
    margin: 0 !important;
    padding: 8px !important;
    background: transparent !important;
    border: none !important;
    list-style: none !important;
}

/* LEFT: program list → 2-column grid of icon rows */
.cherry-mega-menu-sub.mega-sub #menu-programacioni{
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.cherry-mega-menu-sub.mega-sub #menu-programacioni > li{
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: flex;
    align-items: center;
    border-radius: 12px;
    transition: background .15s ease;
}
.cherry-mega-menu-sub.mega-sub #menu-programacioni > li:hover{
    background: var(--tv7-cyan-soft);
}

/* Icon box — Tabler glyph (set by the ti-* class) rendered in a rounded square */
.cherry-mega-menu-sub.mega-sub #menu-programacioni > li::before{
    font-family: "tabler-icons" !important;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    margin: 8px 0 8px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--tv7-cyan-soft);
    color: var(--tv7-cyan-dark);
    transition: background .15s ease, color .15s ease;
}
.cherry-mega-menu-sub.mega-sub #menu-programacioni > li:hover::before{
    background: var(--tv7-cyan);
    color: #fff;
}
/* Items still without a ti-* class: show a neutral bullet so the box isn't empty */
.cherry-mega-menu-sub.mega-sub #menu-programacioni > li:not([class*="ti-"])::before{
    content: "\2022";
    font-family: inherit !important;
    font-size: 22px;
}

.cherry-mega-menu-sub.mega-sub #menu-programacioni > li > a{
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 12px !important;
    color: var(--tv7-text) !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none !important;
    background: transparent !important;
}
.cherry-mega-menu-sub.mega-sub #menu-programacioni > li > a:hover{
    color: var(--tv7-text) !important;
    background: transparent !important;
}

/* RIGHT: featured green card (the "Programacioni Javor" text widget) */
.cherry-mega-menu-sub.mega-sub .menu-columns-5 .textwidget{
    background: var(--tv7-green-soft);
    border-radius: 12px;
    padding: 22px 18px;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}
.cherry-mega-menu-sub.mega-sub .menu-columns-5 .textwidget p{ margin: 0 !important; }
.cherry-mega-menu-sub.mega-sub .menu-columns-5 .textwidget br{ display: none; }
.cherry-mega-menu-sub.mega-sub .menu-columns-5 .textwidget img{
    max-width: 100% !important;
    height: auto !important;
    float: none !important;
    margin: 0 auto !important;
    display: inline-block;
}
.cherry-mega-menu-sub.mega-sub .menu-columns-5 .textwidget a{
    display: inline-block;
    transition: transform .15s ease;
}
.cherry-mega-menu-sub.mega-sub .menu-columns-5 .textwidget a:hover{ transform: translateY(-2px); }

/* RESPONSIVE: stack on mobile */
@media (max-width: 900px){
    .cherry-mega-menu-sub.mega-sub{ display: block !important; padding: 10px !important; }
    .cherry-mega-menu-sub.mega-sub > .menu-columns-5{ max-width: 100%; margin-top: 12px !important; }
    .cherry-mega-menu-sub.mega-sub #menu-programacioni{ grid-template-columns: 1fr; }
}
