.aboutDesk {
    position: relative;
    width: 100%;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;

    background: #383035;
}

.cardArea {
    position: relative;
    width: 700px;
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.indexCard {
    background: #fefadf;
    color: #383035;
    padding: 30px 40px;

    display: flex;
    flex-direction: column;
    align-items: center;
    
    border: 3px solid #383035;
    line-height: 1.5;

    position: relative;
    max-width: 100%;
    width: 700px;
    margin: 0 auto;

    opacity: 1;
    transform: translateY(0);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.indexCard::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 2px solid #383035;
    pointer-events: none;
}

.indexCard .cardTitle {
    cursor: default;
    font-size: 1.6rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.indexCard p {
    cursor: default;
    margin: 0 0 1.2rem 0;
    line-height: 1.6;
}

.indexCard .ref {
    border-bottom: 2px solid #383035;
    margin-bottom: -2px;
    cursor: pointer;
}

 .videoWrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 20px auto;
    border: 3px solid #383035;
    overflow: hidden;
}

.cardVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    color: #383035;
    font-size: 0.9rem;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.indexCard a {
    color: #383035;
}

.flavourText {
    position: absolute;
    top: -25px;
    right: 45%;
    font-size: 0.75rem;
    color: #fefadf;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.flavourText.active {
    opacity: 1;
}

.indexPanel {
    margin-top: 10px;
    padding: 0;
    width: 400px;
    text-align: left;
    cursor: pointer;
}

.indexHeader.pulse {
    animation: pulse 0.4s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.indexHeader {
    font-size: 0.8rem;
    color: #fefadf;

    padding: 6px 10px;
    border-bottom: 1px solid #fefadf;
    user-select: none;
}

#indexArrow {
    display: inline-block;
    width: 14px;
}

#indexList {
    max-height: 0;
    height: 0;
    list-style: none;
    padding: 0 10px;
    margin: 0;
    color: #fefadf;
    overflow: hidden;
    transition: max-height 0.3s ease;
    line-height: 1.2;
}

#indexList.expanded {
    height: auto;
    max-height: 300px;
    margin-top: 4px;
    padding-bottom: 4px;
    overflow: scroll;
}

.indexPanel .indexItem {
    color: #fefadf;
    padding: 6px 0;
    font-size: 0.9rem;
    border-bottom: 1px dashed #fefadf;
    transform: scale(1);
    transition: transform 0.15s ease;
}

.indexPanel .indexItem:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .aboutDesk {
        padding: 20px;
        width: 100%;
    }

    .cardArea {
        width: 100%;
        max-width: 100%;
    }

    .indexCard {
        width: 100%;
        padding: 24px 20px;
        border-width: 2px;
    }

    .indexCard::after {
        top: 4px;
        left: 4px;
        right: 4px;
        border-width: 2px;
    }

    .indexCard .cardTitle {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .indexCard p {
        font-size: 1.05rem;
        line-height: 1.75;
        margin-bottom: 1.4rem;
    }

    .indexCard .ref {
        border-bottom-width: 2px;
    }

    .indexHeader { 
        font-size: 1rem;
        border-bottom-width: 2px;
    }

    .indexPanel {
        width: 100%;
        margin-top: 20px;
    }

    #indexList.expanded {
        max-height: 200px;
    }

    .indexPanel .indexItem {
        font-size: 1rem;
        padding: 8px 0;
    }
}