.rules-section {
    max-width: 600px;
    margin: 20px auto;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.rules-header {
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    color: #333;
}

.rules-content {
    display: none;
    margin-top: 10px;
}

.toggle-btn {
    font-size: 20px;
    font-weight: bold;
    user-select: none;
    transition: transform 0.3s ease;
}

/* Stylish list */
.rules-content ul {
    list-style: none; /* remove default bullets */
    padding: 0;
    margin: 0;
}

.rules-content li {
    position: relative;
    padding: 10px 15px 10px 35px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border-left: 4px solid #4abedb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .rules-content li:hover {
        background: #e0f7ff;
        border-left-color: #1a9ad6;
    }

    /* Add custom counter for numbering */
    .rules-content li::before {
        content: counter(li);
        counter-increment: li;
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: #4abedb;
        color: white;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        text-align: center;
        line-height: 20px;
        font-size: 12px;
        font-weight: bold;
    }

.rules-content ul {
    counter-reset: li;
}
/* Danger list item */
.rules-content li.danger-li {
    background: #ffe6e6; /* soft red/pink background */
    border-left-color: #ff4d4f; /* bold red border */
    color: #a80000; /* dark red text for contrast */
}

    .rules-content li.danger-li:hover {
        background: #ffcccc; /* slightly brighter on hover */
        border-left-color: #ff1a1a;
    }

    /* Optional: override the counter circle color for danger */
    .rules-content li.danger-li::before {
        background: #ff4d4f;
        color: #fff;
    }