/* =========================================================
   TOC Container
   ========================================================= */

#ez-toc-container {
    padding: 0;
}

#ez-toc-container nav ul:first-child {
    padding-top: 20px;
}


/* =========================================================
   TOC Title + Decorative Line (NOT a border)
   ========================================================= */

#ez-toc-container .ez-toc-title-container {
    position: relative;
    margin: 0;
    width: 94% !important;
    padding-left: 0 !important;

    /* spacing ABOVE the title */
    padding-top: 18px;
   padding-bottom: 10px;
    margin-left: 28px;
    margin-right: 30px;
}

/* Decorative full-width line */
#ez-toc-container .ez-toc-title-container::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #302f2e !important;
}

/* Title text spacing */
.ez-toc-title {
    display: block;
    margin: 0;
    padding-bottom: 14px; /* space BETWEEN title and line */
    text-align: left;
}


/* =========================================================
   "More / Less" Toggle Bar (uses plugin’s + / – label)
   ========================================================= */

.ez-toc-more-links-tgl {
    width: 100%;
    margin-left: 0;
    border-radius: 0;

    background: #302f2e;
    color: #ffffff;
    padding: 22px 24px;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;

    position: relative;
}

/* Hide SVG chevron (new plugin versions) */
.ez-toc-more-links-tgl svg {
    display: none !important;
}

/* Style the plugin-generated + / – label */
.ez-toc-more-links-tgl > span:first-child {
    font-size: 2rem !important;
    line-height: 1 !important;
    font-weight: 400 !important;

    width: 40px;
    min-width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: currentColor;
}

/* Toggle text */
.ez-toc-more-links-tgl .ez-toc-more-txt {
    font-weight: bold !important;
    font-family: badeen-display !important;
    padding-left: 0;
    font-size: 1rem;
    line-height: 1.2;
    color: currentColor;
}


/* =========================================================
   Responsive Adjustments
   ========================================================= */

@media only screen and (min-width: 769px) and (max-width: 1024px) {
    #ez-toc-container .ez-toc-title-container {
        width: 92% !important;
    }
}

@media only screen and (max-width: 768px) {
    #ez-toc-container .ez-toc-title-container {
        width: 89% !important;
    }
}

