/* WhatIsWidget — pure HTML/CSS, no JavaScript */

#whatIsSection {
    width: 100%;
    clear: both;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    #whatIsSection {
        width: 75%;
    }
}

.whatIs {
    width: 100%;
    margin: 1em 0;
}

.whatIsItem {
    border-bottom: 1px solid #ccc;
}

/* Hide the checkbox */
.whatIsToggle {
    display: none;
}

/* Header acts as the clickable label */
.whatIsHeader {
    display: block;
    cursor: pointer;
    padding: 10px 14px;
    background-color: #ccc;
    color: black;
    font-family: Whisholder, sans-serif;
    font-size: 1.1em;
    letter-spacing: 1px;
    user-select: none;
    position: relative;
}

.whatIsHeader::after {
    content: '▸';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s;
}

/* Body is collapsed by default */
.whatIsBody {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f5f5f5;
}

.whatIsContent {
    padding: 12px 16px;
    color: #222;
}

/* When checkbox is checked: expand body and rotate arrow */
.whatIsToggle:checked + .whatIsHeader {
    background-color: #222;
    color: #ffd700;
}

.whatIsToggle:checked + .whatIsHeader::after {
    transform: translateY(-50%) rotate(90deg);
}

.whatIsToggle:checked ~ .whatIsBody {
    max-height: 2000px;
}
