/* index-block.css */

.index-block {
    transition: all 0.3s ease;
}

/* Starting style for the index list to be collapsed */
.index-list {
    display: none;
    transition: all 0.3s ease;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

/* Style for the index list when expanded */
.index-block.expanded .index-list {
    display: flex;
    opacity: 1;
    max-height: 100%;
    /* margin-bottom: -2rem; */
    padding: 0 0.5rem 2rem !important;
}


.index-title-toggle {
    cursor: pointer;
}

.index-title-toggle>span {
    position: relative;
    display: inline-block;
}

.index-title-toggle>span::before {
    content: "";
    width: 10px;
    height: 10px;
    /* border: solid #F6CB62; */
    border: solid #333;
    border-width: 0 3px 3px 0;
    display: inline-block;
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(calc(-50% - 2px)) rotate(45deg);
    -webkit-transform: translateY(calc(-50% - 2px)) rotate(45deg);
    transition: transform 0.3s ease;
}

.index-block.expanded .index-title-toggle>span::before {
    transform: translateY(calc(-50% + 2px)) rotate(-135deg);
    -webkit-transform: translateY(calc(-50% + 2px)) rotate(-135deg);
}

/* .page-content .index-block ul li {
    font-size: 20px;
} */

.page-content .index-block ul li a {
    display: block;
    background-color: rgba(246, 210, 173, 0.7);
    color: #333333 !important;
    text-decoration: none !important;
}

.page-content .index-block ul li a:hover {
    background-color: rgba(246, 210, 173, 1);
}

.page-content .index-block ul li:nth-child(2n) a {
    background-color: rgba(251, 229, 177, 0.7);
}


.page-content .index-block ul li:nth-child(3n) a {
    background-color: rgba(241, 196, 186, 0.7);
}

.page-content .index-block ul li:nth-child(2n) a:hover {
    background-color: rgba(251, 229, 177, 1);
}

.page-content .index-block ul li:nth-child(3n) a:hover {
    background-color: rgba(241, 196, 186, 1);
}